mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
Added handling of unmapped provider, with test
This commit is contained in:
parent
8be37bee04
commit
ef6e920161
2 changed files with 8 additions and 1 deletions
|
@ -390,4 +390,8 @@ def test_get_max_token_unit_test():
|
|||
|
||||
|
||||
def test_get_supported_openai_params() -> None:
|
||||
# Mapped provider
|
||||
assert isinstance(get_supported_openai_params("gpt-4"), list)
|
||||
|
||||
# Unmapped provider
|
||||
assert get_supported_openai_params("nonexistent") is None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue