2026-07-30 16:04:34 +08:00
|
|
|
# Mock is deterministic and does not call an external model.
|
|
|
|
|
LLM_MODE=mock
|
|
|
|
|
|
|
|
|
|
# Configure these on the server only when LLM_MODE=real.
|
2026-08-04 17:22:38 +08:00
|
|
|
# Any OpenAI-compatible endpoint works, e.g. Zhipu GLM:
|
|
|
|
|
# OPENAI_BASE_URL=https://open.bigmodel.cn/api/paas/v4
|
|
|
|
|
# OPENAI_MODEL=glm-4-flash # free tier; use glm-4-plus etc. if you have credit
|
2026-07-30 16:04:34 +08:00
|
|
|
OPENAI_API_KEY=
|
|
|
|
|
OPENAI_BASE_URL=https://api.openai.com/v1
|
|
|
|
|
OPENAI_MODEL=
|
|
|
|
|
LLM_TIMEOUT_SECONDS=45
|
|
|
|
|
|
|
|
|
|
CORS_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
|
|
|
|
|
|