@musistudio/claude-code-router 1.0.29 → 1.0.30
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 +13 -1
- package/README_zh.md +11 -1
- package/dist/cli.js +1945 -1024
- package/dist/index.html +32 -33
- package/package.json +1 -1
- package/scripts/build.js +0 -35
- package/ui/PROJECT.md +0 -23
- package/ui/README.md +0 -69
- package/ui/components.json +0 -21
- package/ui/config.example.json +0 -177
- package/ui/dist/index.html +0 -223
- package/ui/dist/vite.svg +0 -1
- package/ui/eslint.config.js +0 -23
- package/ui/index.html +0 -13
- package/ui/package-lock.json +0 -5033
- package/ui/package.json +0 -53
- package/ui/pnpm-lock.yaml +0 -3459
- package/ui/public/vite.svg +0 -1
- package/ui/tsconfig.app.json +0 -26
- package/ui/tsconfig.json +0 -26
- package/ui/tsconfig.tsbuildinfo +0 -1
- package/ui/vite.config.ts +0 -16
package/README.md
CHANGED
|
@@ -168,7 +168,7 @@ ccr code
|
|
|
168
168
|
> ccr restart
|
|
169
169
|
> ```
|
|
170
170
|
|
|
171
|
-
### 4. UI Mode
|
|
171
|
+
### 4. UI Mode (Beta)
|
|
172
172
|
|
|
173
173
|
For a more intuitive experience, you can use the UI mode to manage your configuration:
|
|
174
174
|
|
|
@@ -178,6 +178,9 @@ ccr ui
|
|
|
178
178
|
|
|
179
179
|
This will open a web-based interface where you can easily view and edit your `config.json` file.
|
|
180
180
|
|
|
181
|
+
> **Note**: The UI mode is currently in beta. 100% vibe coding: including project initialization, I just created a folder and a project.md document, and all code was generated by ccr + qwen3-coder + gemini(webSearch).
|
|
182
|
+
If you encounter any issues, please submit an issue on GitHub.
|
|
183
|
+
|
|
181
184
|
#### Providers
|
|
182
185
|
|
|
183
186
|
The `Providers` array is where you define the different model providers you want to use. Each provider object requires:
|
|
@@ -250,6 +253,11 @@ Transformers allow you to modify the request and response payloads to ensure com
|
|
|
250
253
|
- `maxtoken`: Sets a specific `max_tokens` value.
|
|
251
254
|
- `tooluse`: Optimizes tool usage for certain models via `tool_choice`.
|
|
252
255
|
- `gemini-cli` (experimental): Unofficial support for Gemini via Gemini CLI [gemini-cli.js](https://gist.github.com/musistudio/1c13a65f35916a7ab690649d3df8d1cd).
|
|
256
|
+
- `reasoning`: Used to process the `reasoning_content` field.
|
|
257
|
+
- `sampling`: Used to process sampling information fields such as `temperature`, `top_p`, `top_k`, and `repetition_penalty`.
|
|
258
|
+
- `enhancetool`: Adds a layer of error tolerance to the tool call parameters returned by the LLM (this will cause the tool call information to no longer be streamed).
|
|
259
|
+
- `cleancache`: Clears the `cache_control` field from requests.
|
|
260
|
+
- `vertex-gemini`: Handles the Gemini API using Vertex authentication.
|
|
253
261
|
|
|
254
262
|
**Custom Transformers:**
|
|
255
263
|
|
|
@@ -440,5 +448,9 @@ A huge thank you to all our sponsors for their generous support!
|
|
|
440
448
|
- [@congzhangzh](https://github.com/congzhangzh)
|
|
441
449
|
- @\*\_
|
|
442
450
|
- @Z\*m
|
|
451
|
+
- @*鑫
|
|
452
|
+
- @c\*y
|
|
453
|
+
- @\*昕
|
|
454
|
+
|
|
443
455
|
|
|
444
456
|
(If your name is masked, please contact me via my homepage email to update it with your GitHub username.)
|
package/README_zh.md
CHANGED
|
@@ -164,7 +164,7 @@ ccr code
|
|
|
164
164
|
> ccr restart
|
|
165
165
|
> ```
|
|
166
166
|
|
|
167
|
-
### 4. UI 模式
|
|
167
|
+
### 4. UI 模式 (Beta)
|
|
168
168
|
|
|
169
169
|
为了获得更直观的体验,您可以使用 UI 模式来管理您的配置:
|
|
170
170
|
|
|
@@ -174,6 +174,8 @@ ccr ui
|
|
|
174
174
|
|
|
175
175
|
这将打开一个基于 Web 的界面,您可以在其中轻松查看和编辑您的 `config.json` 文件。
|
|
176
176
|
|
|
177
|
+
> **注意**: UI 模式目前处于测试阶段。这是一个 100% vibe coding的项目,包括项目的初始化,我只是新建了一个文件夹和一个project.md文档。所有代码均由 ccr + qwen3-coder + gemini(webSearch) 实现。如有问题请提交 issue。
|
|
178
|
+
|
|
177
179
|
#### Providers
|
|
178
180
|
|
|
179
181
|
`Providers` 数组是您定义要使用的不同模型提供商的地方。每个提供商对象都需要:
|
|
@@ -245,6 +247,11 @@ Transformers 允许您修改请求和响应负载,以确保与不同提供商
|
|
|
245
247
|
- `maxtoken`: 设置特定的 `max_tokens` 值。
|
|
246
248
|
- `tooluse`: 优化某些模型的工具使用(通过`tool_choice`参数)。
|
|
247
249
|
- `gemini-cli` (实验性): 通过 Gemini CLI [gemini-cli.js](https://gist.github.com/musistudio/1c13a65f35916a7ab690649d3df8d1cd) 对 Gemini 的非官方支持。
|
|
250
|
+
- `reasoning`: 用于处理 `reasoning_content` 字段。
|
|
251
|
+
- `sampling`: 用于处理采样信息字段,如 `temperature`、`top_p`、`top_k` 和 `repetition_penalty`。
|
|
252
|
+
- `enhancetool`: 对 LLM 返回的工具调用参数增加一层容错处理(这会导致不再流式返回工具调用信息)。
|
|
253
|
+
- `cleancache`: 清除请求中的 `cache_control` 字段。
|
|
254
|
+
- `vertex-gemini`: 处理使用 vertex 鉴权的 gemini api。
|
|
248
255
|
|
|
249
256
|
**自定义 Transformer:**
|
|
250
257
|
|
|
@@ -435,6 +442,9 @@ jobs:
|
|
|
435
442
|
- [@congzhangzh](https://github.com/congzhangzh)
|
|
436
443
|
- @*_
|
|
437
444
|
- @Z\*m
|
|
445
|
+
- @*鑫
|
|
446
|
+
- @c\*y
|
|
447
|
+
- @\*昕
|
|
438
448
|
|
|
439
449
|
(如果您的名字被屏蔽,请通过我的主页电子邮件与我联系,以便使用您的 GitHub 用户名进行更新。)
|
|
440
450
|
|