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:
@@ -2,10 +2,10 @@
|
||||
models:
|
||||
- id: ds1
|
||||
display_name: "Mock Model 1"
|
||||
url: "http://127.0.0.1:9999/v1"
|
||||
- id: ds2
|
||||
display_name: "Mock Model 2"
|
||||
|
||||
upstream_url: "http://127.0.0.1:9999/v1"
|
||||
url: "http://127.0.0.1:9999/v1"
|
||||
|
||||
workspace_root: "./test/tmp/tasks"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user