Chore/ai service/auto deploy at init (#457)

* allow force deploy during server start

* fix force_deploy and env file
This commit is contained in:
Chih-Yu Yeh
2024-06-28 15:22:07 +08:00
committed by GitHub
parent fbb5182f66
commit 0255fee9ae
10 changed files with 73 additions and 14 deletions
+3 -4
View File
@@ -44,16 +44,15 @@ services:
environment:
WREN_AI_SERVICE_PORT: ${WREN_AI_SERVICE_PORT}
WREN_UI_ENDPOINT: ${WREN_UI_ENDPOINT}
OPENAI_API_KEY: ${OPENAI_API_KEY}
GENERATION_MODEL: ${GENERATION_MODEL}
OPENAI_API_KEY: ${OPENAI_API_KEY}
AZURE_CHAT_KEY: ${AZURE_CHAT_KEY}
AZURE_EMBED_KEY: ${AZURE_EMBED_KEY}
ENABLE_TIMER: ${AI_SERVICE_ENABLE_TIMER}
LOGGING_LEVEL: ${AI_SERVICE_LOGGING_LEVEL}
# sometimes the console won't show print messages,
# using PYTHONUNBUFFERED: 1 can fix this
PYTHONUNBUFFERED: 1
env_file:
- path: ${PROJECT_DIR}/.env.ai
required: false
networks:
- wren
depends_on: