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
+6 -2
View File
@@ -995,12 +995,16 @@ networks:
models:
- id: ds1
display_name: "AMD DeepSeek 1"
url: "https://proxy-a.example.com/v1"
api_key: "sk-..."
- id: ds2
display_name: "AMD DeepSeek 2"
url: "https://proxy-b.example.com/v1"
api_key: "sk-..."
- id: ds3
display_name: "AMD DeepSeek 3"
upstream_url: "https://your-cli-proxy-api.example.com/v1"
url: "https://proxy-c.example.com/v1"
api_key: "sk-..."
workspace_root: "/workspace/tasks"