cc-agents 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +5 -1
  2. package/dist/index.js +83 -195
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -41,7 +41,7 @@ npm install
41
41
 
42
42
  ## 配置
43
43
 
44
- 在你的项目根目录(即运行 cc-agents 的目录)创建 `.cc-agents/settings.json`:
44
+ 首次运行会自动在 `~/.cc-agents/settings.json` 生成配置模板,填入 key 即可。也可在项目根目录创建 `.cc-agents/settings.json` 做项目级覆盖(优先级更高)。
45
45
 
46
46
  ```json
47
47
  {
@@ -80,6 +80,10 @@ system prompt、temperature 等已内置,settings.json 只需填 `apiKey`、`m
80
80
 
81
81
  `authType` 默认为 `"api-key"`(使用 `x-api-key` 请求头),设为 `"bearer"` 则使用 `Authorization: Bearer` 请求头。
82
82
 
83
+ `baseUrl` 填到路径前缀即可,**不要加 `/v1`**(代码会自动拼接):
84
+ - ✓ `"https://api.minimaxi.com/anthropic"`
85
+ - ✗ `"https://api.minimaxi.com/anthropic/v1"`
86
+
83
87
  ## 启动
84
88
 
85
89
  ```bash