mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
QA: ensure all bedrock regional models have same supported_
as base + Anthropic nested pydantic object support (#7844)
* build: ensure all regional bedrock models have same supported values as base bedrock model prevents drift * test(base_llm_unit_tests.py): add testing for nested pydantic objects * fix(test_utils.py): add test_get_potential_model_names * fix(anthropic/chat/transformation.py): support nested pydantic objects Fixes https://github.com/BerriAI/litellm/issues/7755
This commit is contained in:
parent
37ed49fe72
commit
6eb2346fd6
12 changed files with 259 additions and 62 deletions
|
@ -1471,3 +1471,12 @@ def test_pick_cheapest_chat_model_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
|
||||
|
||||
|
||||
def test_get_potential_model_names():
|
||||
from litellm.utils import _get_potential_model_names
|
||||
|
||||
assert _get_potential_model_names(
|
||||
model="bedrock/ap-northeast-1/anthropic.claude-instant-v1",
|
||||
custom_llm_provider="bedrock",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue