mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
fix: fixing mypy linting errors and being backwards compatible for azure=true flag
This commit is contained in:
parent
25d8f45817
commit
060a2e40b2
7 changed files with 17 additions and 7 deletions
|
@ -26,7 +26,7 @@ class AnthropicConfig():
|
|||
to pass metadata to anthropic, it's {"user_id": "any-relevant-information"}
|
||||
"""
|
||||
max_tokens_to_sample: Optional[int]=256 # anthropic requires a default
|
||||
stop_sequences: Optional[list[str]]=None
|
||||
stop_sequences: Optional[list]=None
|
||||
temperature: Optional[int]=None
|
||||
top_p: Optional[int]=None
|
||||
top_k: Optional[int]=None
|
||||
|
@ -34,7 +34,7 @@ class AnthropicConfig():
|
|||
|
||||
def __init__(self,
|
||||
max_tokens_to_sample: Optional[int]=256, # anthropic requires a default
|
||||
stop_sequences: Optional[list[str]]=None,
|
||||
stop_sequences: Optional[list]=None,
|
||||
temperature: Optional[int]=None,
|
||||
top_p: Optional[int]=None,
|
||||
top_k: Optional[int]=None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue