Skip to content

Commit f4d650b

Browse files
committed
Fixed litellm
1 parent 97ee34f commit f4d650b

File tree

1 file changed

+21
-24
lines changed

1 file changed

+21
-24
lines changed

templates/compose/litellm.yaml

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,26 @@
44
# logo: svgs/litellm.svg
55
# port: 4000
66

7+
version: "3"
8+
79
volumes:
8-
pg-data: null
9-
redis-data: null
10+
pg_data: null
11+
redis_data: null
1012

1113
services:
1214
litellm:
13-
image: "ghcr.io/berriai/litellm-database:main-latest"
15+
image: "ghcr.io/berriai/litellm-database:main-stable"
1416
restart: always
1517
depends_on:
1618
postgres:
1719
condition: service_healthy
1820
redis:
1921
condition: service_healthy
2022
environment:
23+
- SERVICE_FQDN_LITELLM_4000
2124
- LITELLM_LOG=ERROR
2225
- LITELLM_MODE=PRODUCTION
23-
- "LITELLM_MASTER_KEY=${SERVICE_PASSWORD_32_LITELLM_MASTER_KEY}"
26+
- "LITELLM_MASTER_KEY=${SERVICE_PASSWORD_MASTERKEY}"
2427
- "UI_USERNAME=${SERVICE_USER_UI}"
2528
- "UI_PASSWORD=${SERVICE_PASSWORD_UI}"
2629
- "DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/${POSTGRES_DB:-litellm}"
@@ -36,16 +39,14 @@ services:
3639
- "VOYAGE_API_KEY=${VOYAGE_API_KEY}"
3740
- "VOYAGE_API_BASE=${VOYAGE_API_BASE}"
3841
volumes:
39-
- "./litellm-config.yaml:/app/config.yaml"
4042
- type: bind
41-
source: ./docker/app/config.yaml
43+
source: ./litellm-config.yaml
4244
target: /app/config.yaml
4345
content: |
4446
general_settings:
4547
proxy_batch_write_at: 60
4648
4749
router_settings:
48-
routing_strategy: usage-based-routing-v2
4950
redis_host: os.environ/REDIS_HOST
5051
redis_port: os.environ/REDIS_PORT
5152
redis_password: os.environ/REDIS_PASSWORD
@@ -57,6 +58,7 @@ services:
5758
log_raw_request_response: true
5859
# turn_off_message_logging: false
5960
# redact_user_api_key_info: false
61+
service_callback: ["prometheus_system"]
6062
drop_params: true
6163
# max_budget: 100
6264
# budget_duration: 30d
@@ -71,19 +73,14 @@ services:
7173
password: os.environ/REDIS_PASSWORD
7274
namespace: "litellm_cache"
7375
ttl: 600
74-
# success_callback:
75-
# - "langfuse"
76-
# - "prometheus"
77-
# failure_callback:
78-
# - "langfuse"
79-
# - "prometheus"
76+
success_callback:
77+
# - "langfuse"
78+
- "prometheus"
79+
failure_callback:
80+
# - "langfuse"
81+
- "prometheus"
8082
model_list:
8183
# OpenAI
82-
- model_name: gpt-3.5-turbo
83-
litellm_params:
84-
model: openai/gpt-3.5-turbo
85-
api_key: os.environ/OPENAI_API_KEY
86-
api_base: os.environ/OPENAI_API_BASE
8784
- model_name: gpt-4
8885
litellm_params:
8986
model: openai/gpt-4
@@ -118,8 +115,8 @@ services:
118115
model: voyage/voyage-law-2
119116
api_key: "os.environ/VOYAGE_API_KEY"
120117
api_base: "os.environ/VOYAGE_API_BASE"
121-
rpm: 300
122-
tpm: 1000000
118+
# rpm: 300
119+
# tpm: 1000000
123120
- model_name: voyage-multilingual-2
124121
model_info:
125122
mode: embedding
@@ -132,8 +129,8 @@ services:
132129
api_base: "os.environ/VOYAGE_API_BASE"
133130
input_cost_per_token: 0.00000012
134131
output_cost_per_token: 0
135-
rpm: 300
136-
tpm: 1000000
132+
# rpm: 300
133+
# tpm: 1000000
137134
healthcheck:
138135
test:
139136
- CMD
@@ -157,7 +154,7 @@ services:
157154
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
158155
- POSTGRES_USER=$SERVICE_USER_POSTGRES
159156
volumes:
160-
- "pg-data:/var/lib/postgresql/data"
157+
- "pg_data:/var/lib/postgresql/data"
161158
healthcheck:
162159
test:
163160
- CMD-SHELL
@@ -169,7 +166,7 @@ services:
169166
image: redis:7-alpine
170167
command: redis-server --appendonly yes
171168
volumes:
172-
- redis-data:/data
169+
- redis_data:/data
173170
healthcheck:
174171
test: ["CMD", "redis-cli", "ping"]
175172
interval: 5s

0 commit comments

Comments
 (0)