From 25b682f030d9c348a75d5aae1ad66b186358ba07 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Sat, 25 Apr 2026 10:50:01 +0200 Subject: [PATCH] =?UTF-8?q?fix(research):=20remove=20Grounded=20from=20LLM?= =?UTF-8?q?=20call=20=E2=80=94=20incompatible=20with=20JSONSchema=20in=20G?= =?UTF-8?q?emini=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gemini rejects requests that set both GoogleSearchRetrieval and response_schema. The orchestrator already provides web content via SearxNG + scraping, so grounding is unnecessary here. --- backend/internal/domain/market/research/orchestrator.go | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/internal/domain/market/research/orchestrator.go b/backend/internal/domain/market/research/orchestrator.go index ac6bac7..de31cb2 100644 --- a/backend/internal/domain/market/research/orchestrator.go +++ b/backend/internal/domain/market/research/orchestrator.go @@ -118,7 +118,6 @@ func callLLM(ctx context.Context, p ai.Provider, userPrompt string, schema []byt SystemPrompt: SystemPrompt, UserMessage: userPrompt, JSONSchema: schema, - Grounded: true, CallType: "research", }) }