fix(gemini): bridge reasoning_config into thinking_config for chat-completions routes

This commit is contained in:
Nanako0129
2026-04-28 17:47:27 +08:00
committed by Teknium
parent 315a11a76f
commit dbbe2d1973
3 changed files with 123 additions and 1 deletions

View File

@@ -8094,6 +8094,7 @@ class AIAgent:
supports_reasoning=self._supports_reasoning_extra_body(),
github_reasoning_extra=self._github_models_reasoning_extra_body() if _is_gh else None,
anthropic_max_output=_ant_max,
provider_name=self.provider,
)
def _supports_reasoning_extra_body(self) -> bool: