2023-12-01 00:34:34 +08:00
model_list :
2024-05-15 13:09:33 +08:00
- model_name : gpt-3.5-turbo-end-user-test
2024-05-09 13:10:17 +08:00
litellm_params :
2024-05-12 13:42:43 +08:00
model : gpt-3.5-turbo
region_name : "eu"
model_info :
id : "1"
2024-05-15 13:09:33 +08:00
- model_name : gpt-3.5-turbo-end-user-test
litellm_params :
2025-10-26 08:15:52 +08:00
model : openai/gpt-4.1-mini
api_key : os.environ/OPENAI_API_KEY # The `os.environ/` prefix tells litellm to read this from the env. See https://docs.litellm.ai/docs/simple_proxy#load-api-keys-from-vault
2024-01-20 06:54:15 +08:00
- model_name : gpt-3.5-turbo
litellm_params :
2025-10-26 07:39:14 +08:00
model : openai/gpt-4.1-mini
api_key : os.environ/OPENAI_API_KEY # The `os.environ/` prefix tells litellm to read this from the env. See https://docs.litellm.ai/docs/simple_proxy#load-api-keys-from-vault
2024-03-26 23:07:53 +08:00
- model_name : gpt-3.5-turbo-large
litellm_params :
2024-03-27 09:04:00 +08:00
model : "gpt-3.5-turbo-1106"
api_key : os.environ/OPENAI_API_KEY
2024-04-06 03:06:46 +08:00
rpm : 480
timeout : 300
stream_timeout : 60
2023-12-01 00:34:34 +08:00
- model_name : gpt-4
litellm_params :
2025-10-26 08:15:52 +08:00
model : openai/gpt-4.1-mini
api_key : os.environ/OPENAI_API_KEY # The `os.environ/` prefix tells litellm to read this from the env. See https://docs.litellm.ai/docs/simple_proxy#load-api-keys-from-vault
2024-04-06 03:06:46 +08:00
rpm : 480
timeout : 300
stream_timeout : 60
2024-01-26 04:49:45 +08:00
- model_name : sagemaker-completion-model
litellm_params :
model : sagemaker/berri-benchmarking-Llama-2-70b-chat-hf-4
input_cost_per_second : 0.000420
2024-01-20 06:54:15 +08:00
- model_name : text-embedding-ada-002
litellm_params :
2025-10-26 08:15:52 +08:00
model : openai/text-embedding-ada-002
api_key : os.environ/OPENAI_API_KEY
2024-01-20 06:54:15 +08:00
model_info :
mode : embedding
base_model : text-embedding-ada-002
2025-04-03 12:33:17 +08:00
- model_name : dall-e-2 # some tests use dall-e-2 which is now deprecated, alias to dall-e-3
2024-01-20 06:54:15 +08:00
litellm_params :
2025-04-03 12:33:17 +08:00
model : openai/dall-e-3
2024-03-12 04:56:10 +08:00
- model_name : openai-dall-e-3
litellm_params :
model : dall-e-3
2024-03-14 05:57:41 +08:00
- model_name : fake-openai-endpoint
litellm_params :
model : openai/fake
2024-03-14 06:06:39 +08:00
api_key : fake-key
2024-03-14 06:07:50 +08:00
api_base : https://exampleopenaiendpoint-production.up.railway.app/
2024-04-12 08:16:15 +08:00
- model_name : fake-openai-endpoint-2
litellm_params :
model : openai/my-fake-model
api_key : my-fake-key
2024-05-07 01:37:38 +08:00
api_base : https://exampleopenaiendpoint-production.up.railway.app/
2024-04-12 08:16:15 +08:00
stream_timeout : 0.001
rpm : 1
2024-04-20 06:03:25 +08:00
- model_name : fake-openai-endpoint-3
litellm_params :
model : openai/my-fake-model
api_key : my-fake-key
2024-05-07 01:37:38 +08:00
api_base : https://exampleopenaiendpoint-production.up.railway.app/
2024-04-20 06:03:25 +08:00
stream_timeout : 0.001
2024-06-18 14:04:48 +08:00
rpm : 1000
2025-01-23 14:19:44 +08:00
- model_name : fake-openai-endpoint-4
litellm_params :
model : openai/my-fake-model
api_key : my-fake-key
api_base : https://exampleopenaiendpoint-production.up.railway.app/
num_retries : 50
2024-04-20 06:03:25 +08:00
- model_name : fake-openai-endpoint-3
litellm_params :
model : openai/my-fake-model-2
api_key : my-fake-key
2024-05-07 01:37:38 +08:00
api_base : https://exampleopenaiendpoint-production.up.railway.app/
2024-04-20 06:03:25 +08:00
stream_timeout : 0.001
2024-06-18 14:04:48 +08:00
rpm : 1000
2025-01-19 11:47:43 +08:00
- model_name : bad-model
litellm_params :
model : openai/bad-model
api_key : os.environ/OPENAI_API_KEY
api_base : https://exampleopenaiendpoint-production.up.railway.app/
mock_timeout : True
timeout : 60
rpm : 1000
model_info :
health_check_timeout : 1
2025-01-27 00:01:05 +08:00
- model_name : good-model
litellm_params :
model : openai/bad-model
api_key : os.environ/OPENAI_API_KEY
api_base : https://exampleopenaiendpoint-production.up.railway.app/
rpm : 1000
model_info :
health_check_timeout : 1
2024-04-16 05:05:26 +08:00
- model_name : "*"
litellm_params :
model : openai/*
api_key : os.environ/OPENAI_API_KEY
2024-07-26 09:48:56 +08:00
2024-08-08 05:37:20 +08:00
# provider specific wildcard routing
- model_name : "anthropic/*"
2024-07-26 09:48:56 +08:00
litellm_params :
2024-08-08 05:37:20 +08:00
model : "anthropic/*"
api_key : os.environ/ANTHROPIC_API_KEY
2025-01-26 08:50:57 +08:00
- model_name : "bedrock/*"
litellm_params :
model : "bedrock/*"
2024-08-08 05:37:20 +08:00
- model_name : "groq/*"
litellm_params :
model : "groq/*"
api_key : os.environ/GROQ_API_KEY
2024-06-13 06:10:20 +08:00
- model_name : mistral-embed
litellm_params :
model : mistral/mistral-embed
2024-04-13 05:16:21 +08:00
- model_name : gpt-instruct # [PROD TEST] - tests if `/health` automatically infers this to be a text completion model
litellm_params :
model : text-completion-openai/gpt-3.5-turbo-instruct
2025-01-23 14:19:44 +08:00
- model_name : fake-openai-endpoint-5
litellm_params :
model : openai/my-fake-model
api_key : my-fake-key
api_base : https://exampleopenaiendpoint-production.up.railway.app/
timeout : 1
2025-02-16 06:54:23 +08:00
- model_name : badly-configured-openai-endpoint
litellm_params :
model : openai/my-fake-model
api_key : my-fake-key
api_base : https://exampleopenaiendpoint-production.up.railway.appxxxx/
2025-08-08 11:13:24 +08:00
- model_name : gemini-1.5-flash
litellm_params :
model : gemini/gemini-1.5-flash
api_key : os.environ/GOOGLE_API_KEY
- model_name : gpt-4o
litellm_params :
model : gpt-4o
api_key : os.environ/OPENAI_API_KEY
2025-02-16 06:54:23 +08:00
2023-12-01 00:34:34 +08:00
litellm_settings :
2024-05-17 06:59:37 +08:00
# set_verbose: True # Uncomment this if you want to see verbose logs; not recommended in production
2023-12-01 00:34:34 +08:00
drop_params : True
2024-03-31 00:02:51 +08:00
# max_budget: 100
# budget_duration: 30d
2024-03-06 11:00:03 +08:00
num_retries : 5
request_timeout : 600
2024-03-27 02:23:23 +08:00
telemetry : False
2024-03-26 23:07:53 +08:00
context_window_fallbacks : [ {"gpt-3.5-turbo": [ "gpt-3.5-turbo-large" ] }]
2024-04-16 04:26:55 +08:00
default_team_settings :
- team_id : team-1
success_callback : [ "langfuse" ]
2024-05-11 08:37:32 +08:00
failure_callback : [ "langfuse" ]
2024-04-16 04:26:55 +08:00
langfuse_public_key : os.environ/LANGFUSE_PROJECT1_PUBLIC # Project 1
langfuse_secret : os.environ/LANGFUSE_PROJECT1_SECRET # Project 1
- team_id : team-2
success_callback : [ "langfuse" ]
2024-05-11 08:37:32 +08:00
failure_callback : [ "langfuse" ]
2024-04-16 04:26:55 +08:00
langfuse_public_key : os.environ/LANGFUSE_PROJECT2_PUBLIC # Project 2
langfuse_secret : os.environ/LANGFUSE_PROJECT2_SECRET # Project 2
2024-06-20 12:14:18 +08:00
langfuse_host : https://us.cloud.langfuse.com
2025-10-10 00:48:05 +08:00
# cache: true # [OPTIONAL] use for caching responses
2025-10-25 01:22:27 +08:00
# enable_caching_on_provider_specific_optional_params: True # Include provider-specific params in cache keys
2025-10-10 00:48:05 +08:00
# cache_params: # And for shared health check
# type: redis
# host: localhost
# port: 6379
2024-03-17 02:16:13 +08:00
2024-08-01 06:29:06 +08:00
# For /fine_tuning/jobs endpoints
finetune_settings :
- custom_llm_provider : azure
2024-12-25 08:58:05 +08:00
api_base : os.environ/AZURE_API_BASE
api_key : os.environ/AZURE_API_KEY
2024-08-01 06:29:06 +08:00
api_version : "2023-03-15-preview"
- custom_llm_provider : openai
api_key : os.environ/OPENAI_API_KEY
# for /files endpoints
files_settings :
- custom_llm_provider : azure
2024-12-25 08:58:05 +08:00
api_base : os.environ/AZURE_API_BASE
api_key : os.environ/AZURE_API_KEY
2024-08-01 06:29:06 +08:00
api_version : "2023-03-15-preview"
- custom_llm_provider : openai
api_key : os.environ/OPENAI_API_KEY
2024-04-13 09:56:13 +08:00
router_settings :
routing_strategy : usage-based-routing-v2
2024-04-23 04:34:36 +08:00
redis_host : os.environ/REDIS_HOST
redis_password : os.environ/REDIS_PASSWORD
redis_port : os.environ/REDIS_PORT
2024-04-13 09:56:13 +08:00
enable_pre_call_checks : true
2024-09-10 09:54:17 +08:00
model_group_alias : {"my-special-fake-model-alias-name": "fake-openai-endpoint-3" }
2024-04-12 08:16:15 +08:00
2024-03-12 04:56:10 +08:00
general_settings :
2024-03-26 23:07:53 +08:00
master_key : sk-1234 # [OPTIONAL] Use to enforce auth on proxy. See - https://docs.litellm.ai/docs/proxy/virtual_keys
2024-04-04 14:20:41 +08:00
store_model_in_db : True
2024-03-07 14:16:59 +08:00
proxy_budget_rescheduler_min_time : 60
proxy_budget_rescheduler_max_time : 64
2024-03-19 11:26:28 +08:00
proxy_batch_write_at : 1
2024-05-07 02:15:22 +08:00
database_connection_pool_limit : 10
2025-10-10 00:48:05 +08:00
# background_health_checks: true
# use_shared_health_check: true
# health_check_interval: 30
2023-12-01 00:34:34 +08:00
# database_url: "postgresql://<user>:<password>@<host>:<port>/<dbname>" # [OPTIONAL] use for token-based auth to proxy
2024-08-07 03:16:00 +08:00
pass_through_endpoints :
- path : "/v1/rerank" # route you want to add to LiteLLM Proxy Server
target : "https://api.cohere.com/v1/rerank" # URL this route should forward requests to
headers : # headers to forward to this URL
content-type : application/json # (Optional) Extra Headers to pass to this endpoint
accept : application/json
forward_headers : True
2024-03-16 10:06:06 +08:00
# environment_variables:
2023-12-01 00:34:34 +08:00
# settings for using redis caching
# REDIS_HOST: redis-16337.c322.us-east-1-2.ec2.cloud.redislabs.com
# REDIS_PORT: "16337"
2023-12-01 01:26:54 +08:00
# REDIS_PASSWORD: