add test config

This commit is contained in:
Ishaan Jaff 2025-03-25 19:21:51 -07:00
parent 9d10befa09
commit b4e745323a
3 changed files with 16 additions and 35 deletions

View file

@ -1,37 +1,9 @@
model_list:
- model_name: gpt-3.5-turbo-end-user-test
- model_name: fake-openai-endpoint
litellm_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

View file

@ -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

View file

@ -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",