mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
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:
parent
9ebb8a8795
commit
267be77720
11 changed files with 141 additions and 66 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue