main: 初始化 Face to API 项目
- 添加前端抽卡台与模型配置界面 - 添加 Express API 服务与多厂商模型调用适配 - 配置本地环境示例、构建脚本和忽略规则
This commit is contained in:
28
.env.example
Normal file
28
.env.example
Normal file
@@ -0,0 +1,28 @@
|
||||
# Server
|
||||
PORT=8787
|
||||
MODEL_CONFIG_PATH=.face-to-api/model-configs.json
|
||||
|
||||
# Provider keys
|
||||
OPENAI_API_KEY=
|
||||
DEEPSEEK_API_KEY=
|
||||
ZHIPU_API_KEY=
|
||||
ANTHROPIC_API_KEY=
|
||||
GEMINI_API_KEY=
|
||||
|
||||
# Optional endpoint/model overrides for deployments whose IDs differ from the UI labels.
|
||||
OPENAI_BASE_URL=https://api.openai.com/v1
|
||||
OPENAI_MODEL_GPT_5_5=gpt-5.5
|
||||
DEEPSEEK_BASE_URL=https://api.deepseek.com
|
||||
DEEPSEEK_MODEL_V4_PRO=DeepSeekV4-pro
|
||||
DEEPSEEK_MODEL_V4_FLASH=DeepSeekV4-flash
|
||||
ZHIPU_BASE_URL=https://open.bigmodel.cn/api/paas/v4
|
||||
ZHIPU_MODEL_GLM_5_1=GLM5.1
|
||||
ANTHROPIC_MODEL_CLAUDE_OPUS_4_7=claude-opus-4.7
|
||||
GEMINI_MODEL_3_1_PRO=Gemini-3.1-pro
|
||||
GEMINI_MODEL_3_5_FLASH=gemini3.5-flash
|
||||
|
||||
# Add comma-separated OpenAI-compatible custom models.
|
||||
# CUSTOM_OPENAI_NAME=Internal Gateway
|
||||
# CUSTOM_OPENAI_BASE_URL=https://gateway.example.com/v1
|
||||
# CUSTOM_OPENAI_API_KEY=
|
||||
# CUSTOM_OPENAI_MODEL_IDS=llama-4,moonshot-v2
|
||||
Reference in New Issue
Block a user