@alibaba-group/open-code-review 1.1.19 → 1.1.21

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.
package/README.md CHANGED
@@ -130,6 +130,13 @@ Config is stored in `~/.opencodereview/config.json`.
130
130
 
131
131
  It is also compatible with Claude Code environment variables (`ANTHROPIC_BASE_URL`, `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_MODEL`) and parses `~/.zshrc` / `~/.bashrc` for those exports.
132
132
 
133
+ > **Note for CC-Switch Users**: If you are using [CC-Switch](https://github.com/farion1231/cc-switch) with [routing service](https://www.ccswitch.io/en/docs?section=proxy&item=service) enabled, you can point `llm.url` to the CC-Switch proxy address without additional configuration:
134
+ > - For **Claude** provider: set `llm.url` to `http://127.0.0.1:15721`
135
+ > - For **CodeX** provider: set `llm.url` to `http://127.0.0.1:15721/v1`
136
+ > - Set `llm.model` according to your provider settings
137
+ > - `llm.auth_token` can be any value
138
+ > - `extra_body` settings still apply
139
+
133
140
  **2. Test Connectivity**
134
141
 
135
142
  ```bash
package/README.zh-CN.md CHANGED
@@ -130,6 +130,13 @@ export OCR_USE_ANTHROPIC=true
130
130
 
131
131
  同时兼容了 Claude Code 环境变量(`ANTHROPIC_BASE_URL`、`ANTHROPIC_AUTH_TOKEN`、`ANTHROPIC_MODEL`),并解析 `~/.zshrc` / `~/.bashrc` 中的相关导出。
132
132
 
133
+ > **CC-Switch 用户特别提醒**:如果你使用 [CC-Switch](https://github.com/farion1231/cc-switch) 并开启了[路由服务](https://www.ccswitch.io/zh/docs?section=proxy&item=service),可以将 `llm.url` 配置成 CC-Switch 启动的代理地址,无需额外配置:
134
+ > - 如果路由的是 **Claude** 供应商:设置 `llm.url` 为 `http://127.0.0.1:15721`
135
+ > - 如果路由的是 **CodeX** 供应商:设置 `llm.url` 为 `http://127.0.0.1:15721/v1`
136
+ > - `llm.model` 根据你的供应商设置进行配置
137
+ > - `llm.auth_token` 可以设置成任意值
138
+ > - `extra_body` 设置依然生效
139
+
133
140
  **2. 测试连通性**
134
141
 
135
142
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alibaba-group/open-code-review",
3
- "version": "1.1.19",
3
+ "version": "1.1.21",
4
4
  "description": "OpenCodeReview CLI — AI-powered code review tool",
5
5
  "bin": {
6
6
  "ocr": "bin/ocr.js"