[inkling] Let Anthropic thinking=disabled map to reasoning effort "none" (#33913)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
548ff545c5
commit
f3ed82b3a8
@@ -2220,6 +2220,12 @@ class OpenAIServingChat(OpenAIServingBase):
|
||||
request.reasoning_effort = "medium" if enabled else "no_think"
|
||||
return
|
||||
|
||||
if self.reasoning_parser == "inkling":
|
||||
# Effort-conditioned, not toggled: "none" (0.0) is the off switch.
|
||||
if not enabled:
|
||||
request.reasoning_effort = "none"
|
||||
return
|
||||
|
||||
config = self.template_manager.reasoning_config
|
||||
is_mistral = (config is not None and config.special_case == "mistral") or (
|
||||
config is None and self._reasoning_default_mode() == "mistral"
|
||||
|
||||
Reference in New Issue
Block a user