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/executor/gemini_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/executor/gemini_test.go') diff --git a/internal/executor/gemini_test.go b/internal/executor/gemini_test.go index 42253da..363f0e9 100644 --- a/internal/executor/gemini_test.go +++ b/internal/executor/gemini_test.go @@ -17,7 +17,7 @@ func TestGeminiRunner_BuildArgs_BasicTask(t *testing.T) { Agent: task.AgentConfig{ Type: "gemini", Instructions: "fix the bug", - Model: "gemini-2.0-flash", + Model: "gemini-2.5-flash-lite", SkipPlanning: true, }, } @@ -33,7 +33,7 @@ func TestGeminiRunner_BuildArgs_BasicTask(t *testing.T) { for _, a := range args { argMap[a] = true } - for _, want := range []string{"--output-format", "stream-json", "--model", "gemini-2.0-flash"} { + for _, want := range []string{"--output-format", "stream-json", "--model", "gemini-2.5-flash-lite"} { if !argMap[want] { t.Errorf("missing arg %q in %v", want, args) } -- cgit v1.2.3