Skip to content

Commit d6bc399

Browse files
try using openai instead of the gateway through vertex
1 parent a4cbf41 commit d6bc399

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

compose.yaml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ services:
2121
SEGMENT_WRITE_KEY:
2222
SESSION_COOKIE_SECURE: 1
2323
OPENAI_API_KEY: ${OPENAI_API_KEY} # Set your OpenAI API key here or in the .env file
24-
OPENAI_BASE_URL: "http://llm/api/v1"
25-
MODEL: "ai/claude3-haiku"
24+
OPENAI_BASE_URL: "https://api.openai.com/v1" # Use the official OpenAI API endpoint
25+
# OPENAI_BASE_URL: "http://llm/api/v1"
26+
MODEL: "gpt-4o-2024-08-06"
2627
INTERCOM_TOKEN:
2728
INTERCOM_ADMIN_ID:
2829
REDIS_URL: redis://redis:6379/0
@@ -54,20 +55,23 @@ services:
5455
networks:
5556
- private
5657

57-
llm:
58-
image: defangio/openai-access-gateway
59-
x-defang-llm: true
60-
ports:
61-
- target: 80
62-
published: 80
63-
protocol: tcp
64-
mode: host
65-
environment:
66-
- OPENAI_API_KEY=${OPENAI_API_KEY}
67-
healthcheck:
68-
test: ["CMD", "curl", "-f", "http://localhost/health"]
69-
networks:
70-
- private
58+
# llm:
59+
# # image: defangio/openai-access-gateway
60+
# build:
61+
# context: ../openai-access-gateway/src
62+
# dockerfile: Dockerfile_ecs
63+
# x-defang-llm: true
64+
# ports:
65+
# - target: 80
66+
# published: 80
67+
# protocol: tcp
68+
# mode: host
69+
# environment:
70+
# - OPENAI_API_KEY=${OPENAI_API_KEY}
71+
# healthcheck:
72+
# test: ["CMD", "curl", "-f", "http://localhost/health"]
73+
# networks:
74+
# - private
7175

7276
discord-bot:
7377
restart: unless-stopped

0 commit comments

Comments
 (0)