mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
Apply suggestion from @greptile-apps[bot]
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
8cb88db94b
commit
879297e252
1 changed files with 2 additions and 7 deletions
|
|
@ -647,14 +647,9 @@ class AnthropicConfig(AnthropicModelInfo, BaseConfig):
|
|||
new_v.append(v)
|
||||
if len(new_v) > 0:
|
||||
new_stop = new_v
|
||||
return new_stop
|
||||
|
||||
@staticmethod
|
||||
def _map_reasoning_effort(
|
||||
reasoning_effort: Optional[Union[REASONING_EFFORT, str]],
|
||||
model: str,
|
||||
) -> Optional[AnthropicThinkingParam]:
|
||||
if AnthropicConfig._is_claude_opus_4_6(model):
|
||||
if reasoning_effort is None:
|
||||
return None
|
||||
return AnthropicThinkingParam(
|
||||
type="adaptive",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue