models 配置改为每模型独立 url/api_key:移除全局 upstream_url/api_key,config.js 校验每模型必填 url(选填 api_key,去尾斜杠),llm.callModel 按 model_id 解析各自上游与鉴权头,server 启动日志逐模型打印 url;example/test 配置与 README/DEPLOY 同步(本地 config.yml 已改为同值独立结构,gitignore 不入库)

This commit is contained in:
2026-08-31 16:29:45 +08:00
parent ab18e17aa7
commit b926e6e48a
8 changed files with 29 additions and 21 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ app/
```bash
cd app
npm install
cp config.example.yml config.yml # 修改 upstream_url / models
cp config.example.yml config.yml # 修改 models(每个模型独立 url/api_key)
npm start # http://localhost:8080
```