Skip to content

Commit d8acfea

Browse files
committed
adding litellm config
1 parent 16f8aec commit d8acfea

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ services:
99
- .env
1010
environment:
1111
- PORT=4000
12+
volumes:
13+
- ./litellm_config.yaml:/app/litellm_config.yaml
14+
command: --config /app/litellm_config.yaml
1215

litellm_config.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# LiteLLM Configuration
2+
# This file configures available models and their settings
3+
4+
model_list:
5+
- model_name: gpt-5-mini
6+
litellm_params:
7+
model: gpt-5-mini
8+
api_key: os.environ/OPENAI_API_KEY
9+
10+
# General settings
11+
general_settings:
12+
# Master key for LiteLLM admin operations (optional)
13+
# master_key: os.environ/LITELLM_MASTER_KEY
14+
15+
# Database URL for storing request logs (optional)
16+
# database_url: os.environ/DATABASE_URL
17+
18+
# Router settings
19+
router_settings:
20+
# Set allowed models (restricts which models can be used)
21+
allowed_model_region: "*"
22+
23+
# Enable model fallback (optional)
24+
# fallbacks: []
25+

0 commit comments

Comments
 (0)