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:
Sameer Kankute 2026-02-06 12:06:50 +05:30
parent 8cb88db94b
commit 879297e252

View file

@ -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",
)