Skip to content

Commit 7561c56

Browse files
author
Eric Liu
committed
update to make sure OPENAI_API_KEY is defined as the gateway implicitly uses it.
1 parent 21c57ef commit 7561c56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/managed-llm-provider/compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
environment:
1010
- LLM_URL=http://llm/api/v1/
1111
- LLM_MODEL=default
12-
- OPENAI_API_KEY="SAMPLE_KEY"
12+
- OPENAI_API_KEY=FAKE_TOKEN
1313
# For other models, see https://docs.defang.io/docs/concepts/managed-llms/openai-access-gateway#model-mapping
1414
healthcheck:
1515
test: ["CMD", "python3", "-c", "import sys, urllib.request; urllib.request.urlopen(sys.argv[1]).read()", "http://localhost:8000/health"]
@@ -34,7 +34,7 @@ services:
3434
model: ai/smollm2
3535
x-defang-llm: true
3636
environment:
37-
- OPENAI_API_KEY="SAMPLE_KEY"
37+
- OPENAI_API_KEY=FAKE_TOKEN
3838
deploy:
3939
resources:
4040
reservations:

0 commit comments

Comments
 (0)