79 lines
3.1 KiB
Plaintext
79 lines
3.1 KiB
Plaintext
# Server-side OpenAI-compatible LLM endpoint base URL.
|
||
LLM_BASE_URL="https://ark.cn-beijing.volces.com/api/v3"
|
||
|
||
# Server-side API key used by the local Vite proxy.
|
||
# Recommended: set `LLM_API_KEY` or `ARK_API_KEY`.
|
||
# Legacy compatibility: `VITE_LLM_API_KEY` is still supported by the proxy,
|
||
# but it should not be relied on by browser code.
|
||
LLM_API_KEY="YOUR_API_KEY"
|
||
|
||
# Optional frontend override for the local proxy path.
|
||
VITE_LLM_PROXY_BASE_URL="/api/llm"
|
||
|
||
# Optional frontend override for the local custom-world scene image proxy path.
|
||
VITE_SCENE_IMAGE_PROXY_BASE_URL="/api/custom-world/scene-image"
|
||
|
||
# Local Node backend address and target used by Vite's dev proxy for runtime API routes.
|
||
NODE_SERVER_ADDR=":8081"
|
||
NODE_SERVER_TARGET="http://127.0.0.1:8081"
|
||
|
||
# Local Caddy upstream target used for dist-based testing.
|
||
CADDY_API_UPSTREAM="http://127.0.0.1:8081"
|
||
|
||
# Node backend SQLite database path.
|
||
SQLITE_PATH=""
|
||
|
||
# Node backend JWT settings.
|
||
JWT_SECRET="CHANGE_ME_FOR_PRODUCTION"
|
||
# 当前默认签发永久 JWT,此字段暂未使用,后续如果恢复有限期 token 再启用。
|
||
JWT_EXPIRES_IN="7d"
|
||
|
||
# Model name for chat completions.
|
||
VITE_LLM_MODEL="doubao-1-5-pro-32k-character-250715"
|
||
|
||
# Server-side DashScope endpoint and API key used by the local scene-image proxy.
|
||
DASHSCOPE_BASE_URL="https://dashscope.aliyuncs.com/api/v1"
|
||
DASHSCOPE_API_KEY="sk-65a0c6fa5e294b9887ace860f9d65990"
|
||
|
||
# Optional model name for custom-world scene image generation.
|
||
DASHSCOPE_IMAGE_MODEL="wan2.7-image"
|
||
|
||
# Optional model names for character asset studio.
|
||
DASHSCOPE_CHARACTER_VISUAL_MODEL="wan2.7-image-pro"
|
||
DASHSCOPE_CHARACTER_IMAGE_SEQUENCE_MODEL="wan2.7-image-pro"
|
||
DASHSCOPE_CHARACTER_VIDEO_MODEL="wan2.7-i2v"
|
||
DASHSCOPE_CHARACTER_REFERENCE_VIDEO_MODEL="wan2.7-r2v"
|
||
DASHSCOPE_CHARACTER_MOTION_TRANSFER_MODEL="wan2.2-animate-move"
|
||
|
||
# Optional: server-side polling timeout for custom-world scene image generation, in milliseconds.
|
||
DASHSCOPE_IMAGE_REQUEST_TIMEOUT_MS="150000"
|
||
|
||
# Optional: longer timeout for character video generation, in milliseconds.
|
||
DASHSCOPE_CHARACTER_VIDEO_REQUEST_TIMEOUT_MS="420000"
|
||
|
||
# Optional: generic frontend timeout for regular LLM requests, in milliseconds.
|
||
VITE_LLM_REQUEST_TIMEOUT_MS="15000"
|
||
|
||
# Optional: longer timeout for custom world generation, in milliseconds.
|
||
VITE_LLM_CUSTOM_WORLD_TIMEOUT_MS="120000"
|
||
|
||
# Optional: timeout for custom-world scene image generation, in milliseconds.
|
||
VITE_SCENE_IMAGE_REQUEST_TIMEOUT_MS="150000"
|
||
|
||
# Optional: print full LLM prompts / outputs in the browser console.
|
||
# Keep this off by default for cleaner logs.
|
||
VITE_LLM_DEBUG_LOG="false"
|
||
|
||
# Optional: official VikingDB credentials for regenerating build-tag similarities
|
||
# with the Python embedding script. The script auto-loads `.env.local` and uses
|
||
# the fixed `bge-large-zh` embedding model.
|
||
VOLCENGINE_ACCESS_KEY_ID=""
|
||
VOLCENGINE_SECRET_ACCESS_KEY=""
|
||
VIKINGDB_HOST=""
|
||
VIKINGDB_REGION=""
|
||
|
||
# APP_URL: The URL where this applet is hosted.
|
||
# AI Studio automatically injects this at runtime with the Cloud Run service URL.
|
||
# Used for self-referential links, OAuth callbacks, and API endpoints.
|
||
APP_URL="MY_APP_URL"
|