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] Remove NLP_CLOUD_API_KEY requirement from test_exceptions.py
Yuneng Jiang14095ee14444
diff --git a/tests/local_testing/test_exceptions.py b/tests/local_testing/test_exceptions.pyindex 2c950d79067..ebab2030c1a 100644--- a/tests/local_testing/test_exceptions.py+++ b/tests/local_testing/test_exceptions.py@@ -185,7 +185,6 @@ def invalid_auth(model): # set the model key to an invalid key, depending on thtemporary_key = os.environ["ALEPH_ALPHA_API_KEY"]os.environ["ALEPH_ALPHA_API_KEY"] = "bad-key"elif model in litellm.nlp_cloud_models:- temporary_key = os.environ["NLP_CLOUD_API_KEY"]os.environ["NLP_CLOUD_API_KEY"] = "bad-key"elif (model@@ -230,7 +229,7 @@ def invalid_auth(model): # set the model key to an invalid key, depending on thelif model in litellm.aleph_alpha_models:os.environ["ALEPH_ALPHA_API_KEY"] = temporary_keyelif model in litellm.nlp_cloud_models:- os.environ["NLP_CLOUD_API_KEY"] = temporary_key+ os.environ.pop("NLP_CLOUD_API_KEY", None)elif "bedrock" in model:os.environ["AWS_ACCESS_KEY_ID"] = temporary_aws_access_keyos.environ["AWS_REGION_NAME"] = temporary_aws_region_name