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:
+1
-1
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user