Skip to content

Commit 1a6307a

Browse files
committed
feat: update models to qwen3-coder series and optimize routing
- Replace qwen3-235b-a22b with qwen3-coder-plus and qwen3-coder-flash - Optimize router configuration for different scenarios: - default/think/longContext: use qwen3-coder-plus (stronger model) - background: use qwen3-coder-flash (faster model) - Update test cases to validate new model configurations - Ensure all routing configurations work correctly
1 parent 3593a8c commit 1a6307a

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

__tests__/claude-code-router-config.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,15 @@ describe("ClaudeCodeRouterConfig", () => {
189189
expect(configContent).toHaveProperty("Router");
190190
expect(configContent.transformers).toHaveLength(1);
191191
expect(configContent.Providers).toHaveLength(1);
192+
193+
// Check models configuration
194+
expect(configContent.Providers[0].models).toEqual(["qwen3-coder-plus", "qwen3-coder-flash"]);
195+
196+
// Check router configuration
197+
expect(configContent.Router.default).toBe("dashscope,qwen3-coder-plus");
198+
expect(configContent.Router.think).toBe("dashscope,qwen3-coder-plus");
199+
expect(configContent.Router.background).toBe("dashscope,qwen3-coder-flash");
200+
expect(configContent.Router.longContext).toBe("dashscope,qwen3-coder-plus");
192201
});
193202
});
194203

bin/claude-code-router-config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,17 +186,17 @@ class ClaudeCodeRouterConfig {
186186
api_base_url:
187187
"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
188188
api_key: dashscopeApiKey,
189-
models: ["qwen3-235b-a22b"],
189+
models: ["qwen3-coder-plus", "qwen3-coder-flash"],
190190
transformer: {
191191
use: ["dashscope"],
192192
},
193193
},
194194
],
195195
Router: {
196-
default: "dashscope,qwen3-235b-a22b",
197-
think: "dashscope,qwen3-235b-a22b",
198-
background: "dashscope,qwen3-235b-a22b",
199-
longContext: "dashscope,qwen3-235b-a22b",
196+
default: "dashscope,qwen3-coder-plus",
197+
think: "dashscope,qwen3-coder-plus",
198+
background: "dashscope,qwen3-coder-flash",
199+
longContext: "dashscope,qwen3-coder-plus",
200200
},
201201
};
202202

0 commit comments

Comments
 (0)