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
test(files): assert key_model_access_denied error type instead of message text
mubashir1osmanid2af0577d535
diff --git a/tests/test_litellm/proxy/openai_files_endpoint/test_files_endpoint.py b/tests/test_litellm/proxy/openai_files_endpoint/test_files_endpoint.pyindex cf80be6f655..c48fc572e40 100644--- a/tests/test_litellm/proxy/openai_files_endpoint/test_files_endpoint.py+++ b/tests/test_litellm/proxy/openai_files_endpoint/test_files_endpoint.py@@ -5357,7 +5357,7 @@ def test_model_routed_file_ops_reject_key_without_model_grant(app.dependency_overrides.pop(ps.user_api_key_auth, None)assert response.status_code == 403, response.text- assert "not allowed to access model" in response.text+ assert response.json()["error"]["type"] == "key_model_access_denied"upstream.assert_not_called()