fix: tracer le moteur IA réellement invoqué
All checks were successful
Validation applicative / TypeScript, tests et build (push) Successful in 1m52s
All checks were successful
Validation applicative / TypeScript, tests et build (push) Successful in 1m52s
This commit is contained in:
@@ -248,7 +248,14 @@ export const llmLogs = mysqlTable("llmLogs", {
|
||||
sourceFileId: int("sourceFileId"), // Optional: link to source file if applicable
|
||||
invoiceId: int("invoiceId"), // Optional: link to invoice if applicable
|
||||
operation: varchar("operation", { length: 50 }).notNull(), // "detection" or "extraction"
|
||||
model: varchar("model", { length: 50 }).notNull(), // LLM model used
|
||||
/** Modèle demandé ou historique, conservé pour compatibilité. */
|
||||
model: varchar("model", { length: 50 }).notNull(),
|
||||
/** Fournisseur réellement résolu par l’adaptateur au moment de l’appel. */
|
||||
resolvedProvider: varchar("resolvedProvider", { length: 30 }),
|
||||
/** Modèle réellement inclus dans le payload envoyé au fournisseur. */
|
||||
resolvedModel: varchar("resolvedModel", { length: 80 }),
|
||||
/** Catégorie de transport, sans URL ni secret. */
|
||||
transport: varchar("transport", { length: 30 }),
|
||||
promptSent: text("promptSent").notNull(), // Full prompt sent to LLM
|
||||
rawResponse: text("rawResponse").notNull(), // Raw response from LLM (before cleaning)
|
||||
cleanedResponse: text("cleanedResponse"), // Response after markdown cleaning
|
||||
|
||||
Reference in New Issue
Block a user