hank9999 commited on
Commit
eac7f28
·
1 Parent(s): d51b817

fix(docs): 添加 Admin API 密钥字段说明及相关配置示例

Browse files
Files changed (2) hide show
  1. README.md +3 -1
  2. config.example.json +2 -1
README.md CHANGED
@@ -49,7 +49,8 @@ cargo build --release
49
  "countTokensAuthType": "x-api-key", // 可选, 用于自定义token统计API, 不需要请删除
50
  "proxyUrl": "http://127.0.0.1:7890", // 可选, HTTP/SOCK5代理, 不需要请删除
51
  "proxyUsername": "user", // 可选, HTTP/SOCK5代理用户名, 不需要请删除
52
- "proxyPassword": "pass" // 可选, HTTP/SOCK5代理密码, 不需要请删除
 
53
  }
54
  ```
55
  最小启动配置为:
@@ -172,6 +173,7 @@ curl http://127.0.0.1:8990/v1/messages \
172
  | `proxyUrl` | string | - | HTTP/SOCKS5 代理地址(可选) |
173
  | `proxyUsername` | string | - | 代理用户名(可选) |
174
  | `proxyPassword` | string | - | 代理密码(可选) |
 
175
 
176
  ### credentials.json
177
 
 
49
  "countTokensAuthType": "x-api-key", // 可选, 用于自定义token统计API, 不需要请删除
50
  "proxyUrl": "http://127.0.0.1:7890", // 可选, HTTP/SOCK5代理, 不需要请删除
51
  "proxyUsername": "user", // 可选, HTTP/SOCK5代理用户名, 不需要请删除
52
+ "proxyPassword": "pass", // 可选, HTTP/SOCK5代理密码, 不需要请删除
53
+ "adminApiKey": "sk-admin-your-secret-key" // 可选, Admin API 密钥, 用于启用凭据管理 API, 不需要请删除
54
  }
55
  ```
56
  最小启动配置为:
 
173
  | `proxyUrl` | string | - | HTTP/SOCKS5 代理地址(可选) |
174
  | `proxyUsername` | string | - | 代理用户名(可选) |
175
  | `proxyPassword` | string | - | 代理密码(可选) |
176
+ | `adminApiKey` | string | - | Admin API 密钥,配置后启用凭据管理 API(可选) |
177
 
178
  ### credentials.json
179
 
config.example.json CHANGED
@@ -2,5 +2,6 @@
2
  "host": "127.0.0.1",
3
  "port": 8990,
4
  "apiKey": "sk-kiro-rs-qazWSXedcRFV123456",
5
- "region": "us-east-1"
 
6
  }
 
2
  "host": "127.0.0.1",
3
  "port": 8990,
4
  "apiKey": "sk-kiro-rs-qazWSXedcRFV123456",
5
+ "region": "us-east-1",
6
+ "adminApiKey": "sk-admin-your-secret-key"
7
  }