fix: treat reasoning_effort="none" as thinking disabled and route gemma to Gemini provider

- Do not send reasoning_effort="none" to APIs (prevents 400 on gemma/Gemini)
- Treat "none" as thinking disabled in thinking_style, Kimi, and reasoning_content backfill paths
- Fix Anthropic extended thinking not respecting "none"
- Fix Azure OpenAI temperature suppression and reasoning body for "none"
- Fix Codex reasoning body for "none"
- Add "gemma" keyword to Gemini ProviderSpec for correct auto routing
This commit is contained in:
masterlyj authored and Xubin Ren committed 2026-04-29 15:41:11 +08:00
1 parent 28f9bbff31
commit b94bc18e59
5 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -267,7 +267,7 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
# Gemini: Google's OpenAI-compatible endpoint
ProviderSpec(
name="gemini",
keywords=("gemini",),
keywords=("gemini", "gemma"),
env_key="GEMINI_API_KEY",
display_name="Gemini",
backend="openai_compat",