@musistudio/claude-code-router 1.0.25 → 1.0.27

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
@@ -101,6 +101,38 @@ Here is a comprehensive example:
101
101
  "transformer": {
102
102
  "use": ["deepseek"]
103
103
  }
104
+ },
105
+ {
106
+ "name": "modelscope",
107
+ "api_base_url": "https://api-inference.modelscope.cn/v1/chat/completions",
108
+ "api_key": "",
109
+ "models": ["Qwen/Qwen3-Coder-480B-A35B-Instruct"],
110
+ "transformer": {
111
+ "use": [
112
+ [
113
+ "maxtoken",
114
+ {
115
+ "max_tokens": 8192
116
+ }
117
+ ]
118
+ ]
119
+ }
120
+ },
121
+ {
122
+ "name": "dashscope",
123
+ "api_base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
124
+ "api_key": "",
125
+ "models": ["qwen3-coder-plus"],
126
+ "transformer": {
127
+ "use": [
128
+ [
129
+ "maxtoken",
130
+ {
131
+ "max_tokens": 8192
132
+ }
133
+ ]
134
+ ]
135
+ }
104
136
  }
105
137
  ],
106
138
  "Router": {
@@ -122,6 +154,11 @@ Start Claude Code using the router:
122
154
  ccr code
123
155
  ```
124
156
 
157
+ > **Note**: After modifying the configuration file, you need to restart the service for the changes to take effect:
158
+ > ```shell
159
+ > ccr restart
160
+ > ```
161
+
125
162
  #### Providers
126
163
 
127
164
  The `Providers` array is where you define the different model providers you want to use. Each provider object requires:
@@ -380,5 +417,9 @@ A huge thank you to all our sponsors for their generous support!
380
417
  - @*琢
381
418
  - @*成
382
419
  - @Z*o
420
+ - @*琨
421
+ - [@congzhangzh](https://github.com/congzhangzh)
422
+ - @*_
423
+
383
424
 
384
425
  (If your name is masked, please contact me via my homepage email to update it with your GitHub username.)
package/README_zh.md CHANGED
@@ -98,6 +98,38 @@ npm install -g @musistudio/claude-code-router
98
98
  "transformer": {
99
99
  "use": ["deepseek"]
100
100
  }
101
+ },
102
+ {
103
+ "name": "modelscope",
104
+ "api_base_url": "https://api-inference.modelscope.cn/v1/chat/completions",
105
+ "api_key": "",
106
+ "models": ["Qwen/Qwen3-Coder-480B-A35B-Instruct"],
107
+ "transformer": {
108
+ "use": [
109
+ [
110
+ "maxtoken",
111
+ {
112
+ "max_tokens": 8192
113
+ }
114
+ ]
115
+ ]
116
+ }
117
+ },
118
+ {
119
+ "name": "dashscope",
120
+ "api_base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
121
+ "api_key": "",
122
+ "models": ["qwen3-coder-plus"],
123
+ "transformer": {
124
+ "use": [
125
+ [
126
+ "maxtoken",
127
+ {
128
+ "max_tokens": 8192
129
+ }
130
+ ]
131
+ ]
132
+ }
101
133
  }
102
134
  ],
103
135
  "Router": {
@@ -119,6 +151,11 @@ npm install -g @musistudio/claude-code-router
119
151
  ccr code
120
152
  ```
121
153
 
154
+ > **注意**: 修改配置文件后,需要重启服务使配置生效:
155
+ > ```shell
156
+ > ccr restart
157
+ > ```
158
+
122
159
  #### Providers
123
160
 
124
161
  `Providers` 数组是您定义要使用的不同模型提供商的地方。每个提供商对象都需要:
@@ -376,6 +413,8 @@ jobs:
376
413
  - @*琢
377
414
  - @*成
378
415
  - @Z*o
416
+ - [@congzhangzh](https://github.com/congzhangzh)
417
+ - @*_
379
418
 
380
419
  (如果您的名字被屏蔽,请通过我的主页电子邮件与我联系,以便使用您的 GitHub 用户名进行更新。)
381
420
 
@@ -65,6 +65,38 @@
65
65
  ]
66
66
  ]
67
67
  }
68
+ },
69
+ {
70
+ "name": "modelscope",
71
+ "api_base_url": "https://api-inference.modelscope.cn/v1/chat/completions",
72
+ "api_key": "",
73
+ "models": ["Qwen/Qwen3-Coder-480B-A35B-Instruct"],
74
+ "transformer": {
75
+ "use": [
76
+ [
77
+ "maxtoken",
78
+ {
79
+ "max_tokens": 8192
80
+ }
81
+ ]
82
+ ]
83
+ }
84
+ },
85
+ {
86
+ "name": "dashscope",
87
+ "api_base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
88
+ "api_key": "",
89
+ "models": ["qwen3-coder-plus"],
90
+ "transformer": {
91
+ "use": [
92
+ [
93
+ "maxtoken",
94
+ {
95
+ "max_tokens": 8192
96
+ }
97
+ ]
98
+ ]
99
+ }
68
100
  }
69
101
  ],
70
102
  "Router": {