mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
test fix test_pick_cheapest_chat_model_from_llm_provider
This commit is contained in:
parent
baa9b34950
commit
1822c45c0e
1 changed files with 3 additions and 17 deletions
|
|
@ -1532,26 +1532,12 @@ def test_supports_vision_gemini():
|
|||
|
||||
def test_pick_cheapest_chat_model_from_llm_provider():
|
||||
from litellm.litellm_core_utils.llm_request_utils import (
|
||||
LitellmCoreRequestUtils,
|
||||
pick_cheapest_chat_models_from_llm_provider,
|
||||
)
|
||||
|
||||
assert (
|
||||
len(
|
||||
LitellmCoreRequestUtils.pick_cheapest_chat_models_from_llm_provider(
|
||||
"openai", n=3
|
||||
)
|
||||
)
|
||||
== 3
|
||||
)
|
||||
assert len(pick_cheapest_chat_models_from_llm_provider("openai", n=3)) == 3
|
||||
|
||||
assert (
|
||||
len(
|
||||
LitellmCoreRequestUtils.pick_cheapest_chat_models_from_llm_provider(
|
||||
"unknown", n=1
|
||||
)
|
||||
)
|
||||
== 0
|
||||
)
|
||||
assert len(pick_cheapest_chat_models_from_llm_provider("unknown", n=1)) == 0
|
||||
|
||||
|
||||
def test_get_potential_model_names():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue