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:
3
drizzle/0040_sudden_flatman.sql
Normal file
3
drizzle/0040_sudden_flatman.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE `llmLogs` ADD `resolvedProvider` varchar(30);--> statement-breakpoint
|
||||
ALTER TABLE `llmLogs` ADD `resolvedModel` varchar(80);--> statement-breakpoint
|
||||
ALTER TABLE `llmLogs` ADD `transport` varchar(30);
|
||||
2517
drizzle/meta/0040_snapshot.json
Normal file
2517
drizzle/meta/0040_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -281,6 +281,13 @@
|
||||
"when": 1788350633569,
|
||||
"tag": "0039_good_carmella_unuscione",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 40,
|
||||
"version": "5",
|
||||
"when": 1788942350737,
|
||||
"tag": "0040_sudden_flatman",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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