Added handling of unmapped provider, with test

This commit is contained in:
James Braza 2024-06-11 18:34:10 -07:00
parent 8be37bee04
commit ef6e920161
2 changed files with 8 additions and 1 deletions

View file

@ -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