feat(registry, executor): add support for gemini-2.5-flash-image model

- Introduced `gemini-2.5-flash-image` model with updated definitions in registry.
- Enhanced model marker detection in Gemini CLI executor to include support for the new model.
This commit is contained in:
Luis Pater
2025-10-09 10:06:10 +08:00
parent d6f671250e
commit d45ebff66b
2 changed files with 15 additions and 1 deletions

View File

@@ -518,7 +518,7 @@ func geminiModelDisallowsThinking(model string) bool {
return false
}
lower := strings.ToLower(model)
for _, marker := range []string{"gemini-2.5-flash-image-preview"} {
for _, marker := range []string{"gemini-2.5-flash-image-preview", "gemini-2.5-flash-image"} {
if strings.Contains(lower, marker) {
return true
}