This commit is contained in:
eycjur 2025-09-06 21:30:08 +09:00
parent b472bf6aef
commit 6eb1b40336

View file

@ -466,13 +466,12 @@ class AmazonConverseConfig(BaseConfig):
if "gpt-oss" in model:
# GPT-OSS models: keep reasoning_effort as-is
# It will be passed through to additionalModelRequestFields
optional_params["reasoning_effort"] = value
continue
else:
# Anthropic and other models: convert to thinking parameter
optional_params["thinking"] = AnthropicConfig._map_reasoning_effort(
value
)
# Anthropic and other models: convert to thinking parameter
optional_params["thinking"] = AnthropicConfig._map_reasoning_effort(
value
)
# Only update thinking tokens for non-GPT-OSS models
if not ("gpt-oss" in model):