Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

more logs

Gergő Móricz5ee2434c9d5a
diff --git a/apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts b/apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts
index b72514947..8e291a172 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,