Skip to content

Commit a0afb77

Browse files
defangdevsclaude
andcommitted
fix: wire crewai worker to top-level models
The worker still depended on the removed chat/embedding provider services, and no service was attached to the new top-level models, so the CHAT_URL/CHAT_MODEL/EMBEDDING_URL/EMBEDDING_MODEL env vars read by app/core/ai_clients.py were never injected. Attach both models to the worker via endpoint_var/model_var (compose.local.yaml inherits this through extends), rename the chat model back to match the local file, and drop x-defang-llm to match the other samples on the new syntax. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sw7j9FYnbChZJbYArxbhuo
1 parent 75acd1e commit a0afb77

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

samples/crewai/compose.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,27 @@ services:
6565
depends_on:
6666
- postgres
6767
- redis
68-
- chat
69-
- embedding
7068
environment:
7169
DJANGO_SETTINGS_MODULE: config.settings
7270
DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=require # remove sslmode for Playground
7371
REDIS_URL: redis://redis:6379/0
7472
OPENAI_API_KEY: defang
7573
DJANGO_SECRET_KEY: null
74+
models:
75+
chat:
76+
endpoint_var: CHAT_URL
77+
model_var: CHAT_MODEL
78+
embedding:
79+
endpoint_var: EMBEDDING_URL
80+
model_var: EMBEDDING_MODEL
7681
deploy:
7782
resources:
7883
reservations:
7984
cpus: "0.5"
8085
memory: 512M
8186

8287
models:
83-
llm:
88+
chat:
8489
model: chat-default
85-
x-defang-llm: true
8690
embedding:
8791
model: embedding-default
88-
x-defang-llm: true

0 commit comments

Comments
 (0)