mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
refactor(anthropic): use PEP 604 optional typing for reasoning effort flag
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
69e374a951
commit
f704f3f799
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ def normalize_reasoning_effort_value(
|
|||
except Exception:
|
||||
model_info = None
|
||||
|
||||
def _flag(key: str) -> Optional[bool]:
|
||||
def _flag(key: str) -> bool | None:
|
||||
"""Return the flag value, or None when not declared."""
|
||||
if not model_info:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue