mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
test_models_by_provider
This commit is contained in:
parent
8e65f99ebb
commit
ae7b13550e
1 changed files with 4 additions and 1 deletions
|
|
@ -1371,6 +1371,9 @@ def test_models_by_provider():
|
|||
or v["litellm_provider"] == "bedrock_converse"
|
||||
):
|
||||
continue
|
||||
elif v.get("mode") == "search":
|
||||
# Skip search providers as they don't have traditional models
|
||||
continue
|
||||
else:
|
||||
providers.add(v["litellm_provider"])
|
||||
|
||||
|
|
@ -2351,7 +2354,7 @@ def test_get_whitelisted_models():
|
|||
"""
|
||||
whitelisted_models = []
|
||||
for model, info in litellm.model_cost.items():
|
||||
if info["litellm_provider"] == "bedrock" and info["mode"] == "chat":
|
||||
if info.get("litellm_provider") == "bedrock" and info.get("mode") == "chat":
|
||||
whitelisted_models.append(model)
|
||||
|
||||
# Write to a local file
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue