fix all optional param tests

This commit is contained in:
Ishaan Jaff
2024-08-07 17:52:40 -07:00
parent 6b03998e32
commit 4e90a25417
+4 -4
View File
@@ -301,7 +301,7 @@ def test_dynamic_drop_params(drop_params):
optional_params = litellm.utils.get_optional_params(
model="command-r",
custom_llm_provider="cohere",
response_format="json",
response_format={"type": "json"},
drop_params=drop_params,
)
else:
@@ -309,7 +309,7 @@ def test_dynamic_drop_params(drop_params):
optional_params = litellm.utils.get_optional_params(
model="command-r",
custom_llm_provider="cohere",
response_format="json",
response_format={"type": "json"},
drop_params=drop_params,
)
pytest.fail("Expected to fail")
@@ -389,7 +389,7 @@ def test_dynamic_drop_additional_params(drop_params):
optional_params = litellm.utils.get_optional_params(
model="command-r",
custom_llm_provider="cohere",
response_format="json",
response_format={"type": "json"},
additional_drop_params=["response_format"],
)
else:
@@ -397,7 +397,7 @@ def test_dynamic_drop_additional_params(drop_params):
optional_params = litellm.utils.get_optional_params(
model="command-r",
custom_llm_provider="cohere",
response_format="json",
response_format={"type": "json"},
)
pytest.fail("Expected to fail")
except Exception as e: