mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
Fixup ollama model listing (again) (#13008)
This commit is contained in:
parent
10595ea077
commit
9211158e73
2 changed files with 3 additions and 1 deletions
|
|
@ -797,6 +797,7 @@ models_by_provider: dict = {
|
|||
"bedrock": bedrock_models + bedrock_converse_models,
|
||||
"petals": petals_models,
|
||||
"ollama": ollama_models,
|
||||
"ollama_chat": ollama_models,
|
||||
"deepinfra": deepinfra_models,
|
||||
"perplexity": perplexity_models,
|
||||
"maritalk": maritalk_models,
|
||||
|
|
|
|||
|
|
@ -342,7 +342,8 @@ class LiteLLM_Params(GenericLiteLLMParams):
|
|||
args.pop("__class__", None)
|
||||
if max_retries is not None and isinstance(max_retries, str):
|
||||
max_retries = int(max_retries) # cast to int
|
||||
super().__init__(max_retries=max_retries, **args, **params)
|
||||
args["max_retries"] = max_retries
|
||||
super().__init__(**{ **args, **params })
|
||||
|
||||
def __contains__(self, key):
|
||||
# Define custom behavior for the 'in' operator
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue