@musistudio/claude-code-router 1.0.43 → 1.0.44

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
@@ -7,6 +7,10 @@ I am seeking funding support for this project to better sustain its development.
7
7
 
8
8
  > A powerful tool to route Claude Code requests to different models and customize any request.
9
9
 
10
+ > Now you can use models such as `GLM-4.5`, `Kimi-K2`, `Qwen3-Coder-480B-A35B`, and `DeepSeek v3.1` for free through the [iFlow Platform](https://platform.iflow.cn/docs/api-mode).
11
+ > You can use the `ccr ui` command to directly import the `iflow` template in the UI. It’s worth noting that iFlow limits each user to a concurrency of 1, which means you’ll need to route background requests to other models.
12
+ > If you’d like a better experience, you can try [iFlow CLI](https://cli.iflow.cn).
13
+
10
14
  ![](blog/images/claude-code.png)
11
15
 
12
16
  ## ✨ Features
@@ -315,6 +319,7 @@ Transformers allow you to modify the request and response payloads to ensure com
315
319
  - `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).
316
320
  - `cleancache`: Clears the `cache_control` field from requests.
317
321
  - `vertex-gemini`: Handles the Gemini API using Vertex authentication.
322
+ - `chutes-glm` Unofficial support for GLM 4.5 model via Chutes [chutes-glm-transformer.js](https://gist.github.com/vitobotta/2be3f33722e05e8d4f9d2b0138b8c863).
318
323
  - `qwen-cli` (experimental): Unofficial support for qwen3-coder-plus model via Qwen CLI [qwen-cli.js](https://gist.github.com/musistudio/f5a67841ced39912fd99e42200d5ca8b).
319
324
  - `rovo-cli` (experimental): Unofficial support for gpt-5 via Atlassian Rovo Dev CLI [rovo-cli.js](https://gist.github.com/SaseQ/c2a20a38b11276537ec5332d1f7a5e53).
320
325
 
@@ -345,8 +350,9 @@ The `Router` object defines which model to use for different scenarios:
345
350
  - `longContext`: A model for handling long contexts (e.g., > 60K tokens).
346
351
  - `longContextThreshold` (optional): The token count threshold for triggering the long context model. Defaults to 60000 if not specified.
347
352
  - `webSearch`: Used for handling web search tasks and this requires the model itself to support the feature. If you're using openrouter, you need to add the `:online` suffix after the model name.
353
+ - `image` (beta): Used for handling image-related tasks (supported by CCR’s built-in agent). If the model does not support tool calling, you need to set the `config.forceUseImageAgent` property to `true`.
348
354
 
349
- You can also switch models dynamically in Claude Code with the `/model` command:
355
+ - You can also switch models dynamically in Claude Code with the `/model` command:
350
356
  `/model provider_name,model_name`
351
357
  Example: `/model openrouter,anthropic/claude-3.5-sonnet`
352
358
 
@@ -495,6 +501,7 @@ A huge thank you to all our sponsors for their generous support!
495
501
 
496
502
 
497
503
  - [AIHubmix](https://aihubmix.com/)
504
+ - [BurnCloud](https://ai.burncloud.com)
498
505
  - @Simon Leischnig
499
506
  - [@duanshuaimin](https://github.com/duanshuaimin)
500
507
  - [@vrgitadmin](https://github.com/vrgitadmin)
@@ -539,11 +546,11 @@ A huge thank you to all our sponsors for their generous support!
539
546
  - @b\*g
540
547
  - @\*亿
541
548
  - @\*辉
542
- - @JACK
549
+ - @JACK
543
550
  - @\*光
544
551
  - @W\*l
545
552
  - [@kesku](https://github.com/kesku)
546
- - @水\*丫
553
+ - [@biguncle](https://github.com/biguncle)
547
554
  - @二吉吉
548
555
  - @a\*g
549
556
  - @\*林
@@ -551,5 +558,18 @@ A huge thank you to all our sponsors for their generous support!
551
558
  - @\*明
552
559
  - @S\*y
553
560
  - @f\*o
561
+ - @\*智
562
+ - @F\*t
563
+ - @r\*c
564
+ - [@qierkang](http://github.com/qierkang)
565
+ - @\*军
566
+ - [@snrise-z](http://github.com/snrise-z)
567
+ - @\*王
568
+ - [@greatheart1000](http://github.com/greatheart1000)
569
+ - @\*王
570
+ - @zcutlip
571
+ - [@Peng-YM](http://github.com/Peng-YM)
572
+ - @\*更
573
+
554
574
 
555
575
  (If your name is masked, please contact me via my homepage email to update it with your GitHub username.)
package/README_zh.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  > 一款强大的工具,可将 Claude Code 请求路由到不同的模型,并自定义任何请求。
6
6
 
7
+ > 现在你可以通过[心流平台](https://platform.iflow.cn/docs/api-mode)免费使用`GLM-4.5`、`Kimi-K2`、`Qwen3-Coder-480B-A35B`、`DeepSeek v3.1`等模型。
8
+ > 你可以使用`ccr ui`命令在UI中直接导入`iflow`模板,值得注意的是心流限制每位用户的并发数为1,意味着你需要将`background`路由到其他模型。
9
+ > 如果你想获得更好的体验,可以尝试[iFlow CLI](https://cli.iflow.cn)。
10
+
7
11
  ![](blog/images/claude-code.png)
8
12
 
9
13
  ## ✨ 功能
@@ -318,6 +322,7 @@ Transformers 允许您修改请求和响应负载,以确保与不同提供商
318
322
  - `longContext`: 用于处理长上下文(例如,> 60K 令牌)的模型。
319
323
  - `longContextThreshold` (可选): 触发长上下文模型的令牌数阈值。如果未指定,默认为 60000。
320
324
  - `webSearch`: 用于处理网络搜索任务,需要模型本身支持。如果使用`openrouter`需要在模型后面加上`:online`后缀。
325
+ - `image`(测试版): 用于处理图片类任务(采用CCR内置的agent支持),如果该模型不支持工具调用,需要将`config.forceUseImageAgent`属性设置为`true`。
321
326
 
322
327
  您还可以使用 `/model` 命令在 Claude Code 中动态切换模型:
323
328
  `/model provider_name,model_name`
@@ -465,6 +470,7 @@ jobs:
465
470
  非常感谢所有赞助商的慷慨支持!
466
471
 
467
472
  - [AIHubmix](https://aihubmix.com/)
473
+ - [BurnCloud](https://ai.burncloud.com)
468
474
  - @Simon Leischnig
469
475
  - [@duanshuaimin](https://github.com/duanshuaimin)
470
476
  - [@vrgitadmin](https://github.com/vrgitadmin)
@@ -498,6 +504,7 @@ jobs:
498
504
  - @*琢
499
505
  - @*成
500
506
  - @Z*o
507
+ - @\*琨
501
508
  - [@congzhangzh](https://github.com/congzhangzh)
502
509
  - @*_
503
510
  - @Z\*m
@@ -512,7 +519,7 @@ jobs:
512
519
  - @\*光
513
520
  - @W\*l
514
521
  - [@kesku](https://github.com/kesku)
515
- - @水\*丫
522
+ - [@biguncle](https://github.com/biguncle)
516
523
  - @二吉吉
517
524
  - @a\*g
518
525
  - @\*林
@@ -520,6 +527,18 @@ jobs:
520
527
  - @\*明
521
528
  - @S\*y
522
529
  - @f\*o
530
+ - @\*智
531
+ - @F\*t
532
+ - @r\*c
533
+ - [@qierkang](http://github.com/qierkang)
534
+ - @\*军
535
+ - [@snrise-z](http://github.com/snrise-z)
536
+ - @\*王
537
+ - [@greatheart1000](http://github.com/greatheart1000)
538
+ - @\*王
539
+ - @zcutlip
540
+ - [@Peng-YM](http://github.com/Peng-YM)
541
+ - @\*更
523
542
 
524
543
  (如果您的名字被屏蔽,请通过我的主页电子邮件与我联系,以便使用您的 GitHub 用户名进行更新。)
525
544