Skip to content

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]

fix: update tests to match tuple return type for cached init params

Ryan Crabbebbbec23c8bdb
diff --git a/tests/test_litellm/llms/openai/test_openai_common_utils.py b/tests/test_litellm/llms/openai/test_openai_common_utils.py
index f2740be642d..d0dedd3ed9b 100644
--- a/tests/test_litellm/llms/openai/test_openai_common_utils.py
+++ b/tests/test_litellm/llms/openai/test_openai_common_utils.py
@@ -146,12 +146,12 @@ def test_precomputed_init_params_match_inspect_signature():
_OPENAI_INIT_PARAMS,
)
- expected_openai = [
+ expected_openai = tuple(
p for p in inspect.signature(OpenAI.__init__).parameters if p != "self"
- ]
- expected_azure = [
+ )
+ expected_azure = tuple(
p for p in inspect.signature(AzureOpenAI.__init__).parameters if p != "self"
- ]
+ )
assert _OPENAI_INIT_PARAMS == expected_openai
assert _AZURE_OPENAI_INIT_PARAMS == expected_azure
@@ -161,6 +161,6 @@ def test_precomputed_init_params_match_inspect_signature():
def test_get_openai_client_initialization_param_fields(client_type):
"""Verify the method returns the correct pre-computed params for each client type."""
result = BaseOpenAILLM.get_openai_client_initialization_param_fields(client_type)
- assert isinstance(result, list)
+ assert isinstance(result, tuple)
assert len(result) > 0
assert "self" not in result