mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
refactor
This commit is contained in:
parent
b472bf6aef
commit
6eb1b40336
1 changed files with 5 additions and 6 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue