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: test_init_kwargs_for_pass_through_endpoint_basic
Ishaan Jaffer706b9214c08c
diff --git a/tests/pass_through_unit_tests/test_pass_through_unit_tests.py b/tests/pass_through_unit_tests/test_pass_through_unit_tests.pyindex dfd71f8ca5c..0c62e776e9c 100644--- a/tests/pass_through_unit_tests/test_pass_through_unit_tests.py+++ b/tests/pass_through_unit_tests/test_pass_through_unit_tests.py@@ -134,21 +134,19 @@ def test_init_kwargs_for_pass_through_endpoint_basic(assert result["litellm_call_id"] == "test-call-id"assert result["passthrough_logging_payload"] == passthrough_payload+ ########################################################## Check metadata- expected_metadata = {- "user_api_key": "test-key",- "user_api_key_hash": "test-key",- "user_api_key_alias": None,- "user_api_key_user_email": None,- "user_api_key_user_id": "test-user",- "user_api_key_team_id": "test-team",- "user_api_key_org_id": None,- "user_api_key_team_alias": None,- "user_api_key_end_user_id": "test-user",- "user_api_key_request_route": None,- }-- assert result["litellm_params"]["metadata"] == expected_metadata+ #########################################################+ assert result["litellm_params"]["metadata"]["user_api_key"] == "test-key"+ assert result["litellm_params"]["metadata"]["user_api_key_hash"] == "test-key"+ assert result["litellm_params"]["metadata"]["user_api_key_alias"] is None+ assert result["litellm_params"]["metadata"]["user_api_key_user_email"] is None+ assert result["litellm_params"]["metadata"]["user_api_key_user_id"] == "test-user"+ assert result["litellm_params"]["metadata"]["user_api_key_team_id"] == "test-team"+ assert result["litellm_params"]["metadata"]["user_api_key_org_id"] is None+ assert result["litellm_params"]["metadata"]["user_api_key_team_alias"] is None+ assert result["litellm_params"]["metadata"]["user_api_key_end_user_id"] == "test-user"+ assert result["litellm_params"]["metadata"]["user_api_key_request_route"] is Nonedef test_init_kwargs_with_litellm_metadata(mock_request, mock_user_api_key_dict):