From 5ee2434c9d5aeb3bd29fd1dea93b0577404f5e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Wed, 16 Apr 2025 14:24:09 -0700 Subject: [PATCH] more logs --- apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts b/apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts index b7251494..8e291a17 100644 --- a/apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts +++ b/apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts @@ -215,7 +215,6 @@ export async function extractData({ // TODO: remove the "required" fields here!! it breaks o3-mini if (!schema && extractOptions.options.prompt) { - logger.info("Generating schema from prompt"); const genRes = await generateSchemaFromPrompt(extractOptions.options.prompt, logger); otherCallCount++; otherCost += genRes.cost; @@ -229,6 +228,9 @@ export async function extractData({ }; // console.log("schema", schema); // console.log("schemaToUse", schemaToUse); + logger.info("Generated schema from prompt", { + schemaToUse, + }); let extract: any, warning: string | undefined,