Litellm dev 01 11 2025 p3 (#7702)

* fix(__init__.py): fix init to exclude pricing-only model cost values from real model names

prevents bad health checks on wildcard routes

* fix(get_llm_provider.py): fix to handle calling bedrock_converse models
This commit is contained in:
Krish Dholakia 2025-01-11 20:06:54 -08:00 committed by GitHub
parent 9ebb8a8795
commit 267be77720
11 changed files with 141 additions and 66 deletions

View file

@ -1457,3 +1457,13 @@ def test_supports_vision_gemini():
from litellm.utils import supports_vision
assert supports_vision("gemini-1.5-pro") is True
def test_pick_cheapest_chat_model_from_llm_provider():
from litellm.litellm_core_utils.llm_request_utils import (
pick_cheapest_chat_models_from_llm_provider,
)
assert len(pick_cheapest_chat_models_from_llm_provider("openai", n=3)) == 3
assert len(pick_cheapest_chat_models_from_llm_provider("unknown", n=1)) == 0