feat(copilot): move provider configuration to settings

This commit is contained in:
2026-07-12 22:27:29 +08:00
parent f39943629f
commit df23caf7d9
29 changed files with 916 additions and 258 deletions
-19
View File
@@ -57,25 +57,6 @@ FRONTEND_URL=https://your-domain.com
GOCHAT_METRICS_ENABLED=true
GOCHAT_METRICS_PORT=9090
# ---- LLM / Captain AI ----
GOCHAT_CAPTAIN_ENABLED=false
GOCHAT_CAPTAIN_LLM_PROVIDER=openai # openai, azure, custom
GOCHAT_CAPTAIN_LLM_MODEL=gpt-4o
GOCHAT_CAPTAIN_LLM_API_KEY=CHANGE_ME_TO_YOUR_LLM_API_KEY
GOCHAT_CAPTAIN_LLM_BASE_URL= # custom endpoint, empty for default (https://api.openai.com/v1)
GOCHAT_CAPTAIN_EMBEDDING_MODEL=text-embedding-3-small
GOCHAT_CAPTAIN_EMBEDDING_DIMS=1536
GOCHAT_CAPTAIN_MAX_TOKENS=4096
GOCHAT_CAPTAIN_TEMPERATURE=0.7
# Legacy OpenAI env vars (also supported by CaptainConfig loading)
OPENAI_API_KEY=
OPENAI_MODEL=gpt-4o
# Volcengine / Douban alternative LLM providers
VOLCENGINE_API_KEY=
DOUBAN_MODEL=
# ---- WebSocket ----
GOCHAT_WS_MAX_MESSAGE_SIZE=65536 # 64KB max WebSocket message size
GOCHAT_WS_READ_BUFFER_SIZE=1024