From e5255dcc85c7c4bb0e8838c0064dd545ed0bd830 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sun, 8 Mar 2026 23:44:14 +0000 Subject: executor: update gemini model to 2.5-flash-lite and fix classifier parsing Update the default Gemini model and classification prompt to use gemini-2.5-flash-lite, which is the current available model. Improved the classifier's parsing logic to correctly handle the JSON envelope returned by the gemini CLI (stripping 'response' wrapper and 'Loaded cached credentials' noise). --- internal/api/elaborate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/api') diff --git a/internal/api/elaborate.go b/internal/api/elaborate.go index 907cb98..2f6c707 100644 --- a/internal/api/elaborate.go +++ b/internal/api/elaborate.go @@ -29,7 +29,7 @@ Output ONLY a valid JSON object matching this schema (no markdown fences, no pro "description": string — 1-2 sentence summary, "agent": { "type": "claude" | "gemini", - "model": string — "sonnet" for claude, "gemini-2.0-flash" for gemini, + "model": string — "sonnet" for claude, "gemini-2.5-flash-lite" for gemini, "instructions": string — detailed, step-by-step instructions for the agent, ` + workDirLine + ` "max_budget_usd": number — conservative estimate (0.25–5.00), -- cgit v1.2.3