From 48590789656d082c2ebcd25bc48b7b2506f5ed42 Mon Sep 17 00:00:00 2001 From: rafaelmmiller <150964962+rafaelsideguide@users.noreply.github.com> Date: Thu, 3 Apr 2025 17:56:14 -0300 Subject: [PATCH] it worked! --- apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts b/apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts index fdfdd1d0..c1c9df34 100644 --- a/apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts +++ b/apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts @@ -6,6 +6,7 @@ import { } from "../transformers/llmExtract"; import { smartScrape } from "./smartScrape"; import { parseMarkdown } from "../../../lib/html-to-markdown"; +import { getModel } from "../../../lib/generic-ai"; const commonSmartScrapeProperties = { shouldUseSmartscrape: { @@ -199,7 +200,7 @@ export async function extractData({ try { const { extract: x, warning: y, totalUsage: z } = await generateCompletions( - extractOptionsNewSchema, + { ...extractOptionsNewSchema, model: getModel("gemini-2.5-pro-exp-03-25", "google") } ); extract = x; warning = y;