mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
fix(converse_transformation.py): correctly transform reasoning_effort for gpt-oss models
This commit is contained in:
parent
e9415e3708
commit
9c6dc3c47a
1 changed files with 6 additions and 6 deletions
|
|
@ -473,12 +473,12 @@ class AmazonConverseConfig(BaseConfig):
|
|||
if "gpt-oss" in model:
|
||||
# GPT-OSS models: keep reasoning_effort as-is
|
||||
# It will be passed through to additionalModelRequestFields
|
||||
continue
|
||||
|
||||
# Anthropic and other models: convert to thinking parameter
|
||||
optional_params["thinking"] = AnthropicConfig._map_reasoning_effort(
|
||||
value
|
||||
)
|
||||
optional_params["reasoning_effort"] = value
|
||||
else:
|
||||
# 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 "gpt-oss" not in model:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue