feat(librarian): conditionally enable thinking based on model type

- Add isGeminiModel helper to detect Gemini models
- Disable thinking config for Gemini models (not supported)
- Enable thinking with 32000 token budget for other models
- Add tests verifying both Gemini and Claude behavior

🤖 Generated with assistance of OhMyOpenCode
This commit is contained in:
justsisyphus
2026-01-27 08:36:55 +09:00
parent 4e6bf7282e
commit ac23d45061
3 changed files with 40 additions and 1 deletions
+4
View File
@@ -56,6 +56,10 @@ export function isGptModel(model: string): boolean {
return model.startsWith("openai/") || model.startsWith("github-copilot/gpt-")
}
export function isGeminiModel(model: string): boolean {
return model.includes("gemini")
}
export type BuiltinAgentName =
| "sisyphus"
| "oracle"