The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix all optional param tests
Ishaan Jaff4e90a2541714
diff --git a/litellm/tests/test_optional_params.py b/litellm/tests/test_optional_params.pyindex 2cd5c114929..d961190c29f 100644--- a/litellm/tests/test_optional_params.py+++ b/litellm/tests/test_optional_params.py@@ -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: