Skip to content

Commit 34b2839

Browse files
authored
feat: update models to qwen3-coder series and optimize routing (#5)
- 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 58680a6 commit 34b2839

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,15 @@ describe("ClaudeCodeRouterConfig", () => {
219219
expect(configContent).toHaveProperty("Router");
220220
expect(configContent.transformers).toHaveLength(1);
221221
expect(configContent.Providers).toHaveLength(1);
222+
223+
// Check models configuration
224+
expect(configContent.Providers[0].models).toEqual(["qwen3-coder-plus", "qwen3-coder-flash"]);
225+
226+
// Check router configuration
227+
expect(configContent.Router.default).toBe("dashscope,qwen3-coder-plus");
228+
expect(configContent.Router.think).toBe("dashscope,qwen3-coder-plus");
229+
expect(configContent.Router.background).toBe("dashscope,qwen3-coder-flash");
230+
expect(configContent.Router.longContext).toBe("dashscope,qwen3-coder-plus");
222231
});
223232
});
224233

bin/claude-code-router-config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,17 +239,17 @@ class ClaudeCodeRouterConfig {
239239
name: "dashscope",
240240
api_base_url: apiBaseUrl,
241241
api_key: dashscopeApiKey,
242-
models: ["qwen3-235b-a22b"],
242+
models: ["qwen3-coder-plus", "qwen3-coder-flash"],
243243
transformer: {
244244
use: ["dashscope"],
245245
},
246246
},
247247
],
248248
Router: {
249-
default: "dashscope,qwen3-235b-a22b",
250-
think: "dashscope,qwen3-235b-a22b",
251-
background: "dashscope,qwen3-235b-a22b",
252-
longContext: "dashscope,qwen3-235b-a22b",
249+
default: "dashscope,qwen3-coder-plus",
250+
think: "dashscope,qwen3-coder-plus",
251+
background: "dashscope,qwen3-coder-flash",
252+
longContext: "dashscope,qwen3-coder-plus",
253253
},
254254
};
255255

0 commit comments

Comments
 (0)