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
add test config
Ishaan Jaffb4e745323a49
diff --git a/litellm/proxy/proxy_config.yaml b/litellm/proxy/proxy_config.yamlindex 26ce6cb8f84..4912a35f89f 100644--- a/litellm/proxy/proxy_config.yaml+++ b/litellm/proxy/proxy_config.yaml@@ -1,37 +1,9 @@model_list:- - model_name: gpt-3.5-turbo-end-user-test+ - model_name: fake-openai-endpointlitellm_params:- model: azure/chatgpt-v-2- api_base: https://openai-gpt-4-test-v-1.openai.azure.com/- api_version: "2023-05-15"- api_key: os.environ/AZURE_API_KEY+ model: openai/fake+ api_key: fake-key+ api_base: https://exampleopenaiendpoint-production.up.railway.app/---mcp_tools:- - name: "get_current_time"- description: "Get the current time"- input_schema: {- "type": "object",- "properties": {- "format": {- "type": "string",- "description": "The format of the time to return",- "enum": ["short"]- }- }- }- handler: "mcp_tools.get_current_time"- - name: "get_current_date"- description: "Get the current date"- input_schema: {- "type": "object",- "properties": {- "format": {- "type": "string",- "description": "The format of the date to return",- "enum": ["short"]- }- }- }- handler: "mcp_tools.get_current_date"+general_settings:+ allow_requests_on_db_unavailable: True\ No newline at end of filediff --git a/tests/proxy_reliability_tests/test_configs/test_config.yaml b/tests/proxy_reliability_tests/test_configs/test_config.yamlnew file mode 100644index 00000000000..4912a35f89f--- /dev/null+++ b/tests/proxy_reliability_tests/test_configs/test_config.yaml@@ -0,0 +1,9 @@+model_list:+ - model_name: fake-openai-endpoint+ litellm_params:+ model: openai/fake+ api_key: fake-key+ api_base: https://exampleopenaiendpoint-production.up.railway.app/++general_settings:+ allow_requests_on_db_unavailable: True\ No newline at end of filediff --git a/tests/proxy_reliability_tests/test_using_litellm_db_outage.py b/tests/proxy_reliability_tests/test_using_litellm_db_outage.pyindex 745a14bdc6c..acaaed05f31 100644--- a/tests/proxy_reliability_tests/test_using_litellm_db_outage.py+++ b/tests/proxy_reliability_tests/test_using_litellm_db_outage.py@@ -28,7 +28,7 @@ def test_litellm_proxy_server_config_no_general_settings():subprocess.run(["pip", "install", "litellm[proxy]"])subprocess.run(["pip", "install", "litellm[extra_proxy]"])filepath = os.path.dirname(os.path.abspath(__file__))- config_fp = f"{filepath}/test_configs/test_config_no_auth.yaml"+ config_fp = f"{filepath}/test_configs/test_config.yaml"server_process = subprocess.Popen(["python",