Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions __tests__/claude-code-router-config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,15 @@ describe("ClaudeCodeRouterConfig", () => {
expect(configContent).toHaveProperty("Router");
expect(configContent.transformers).toHaveLength(1);
expect(configContent.Providers).toHaveLength(1);

// Check models configuration
expect(configContent.Providers[0].models).toEqual(["qwen3-coder-plus", "qwen3-coder-flash"]);

// Check router configuration
expect(configContent.Router.default).toBe("dashscope,qwen3-coder-plus");
expect(configContent.Router.think).toBe("dashscope,qwen3-coder-plus");
expect(configContent.Router.background).toBe("dashscope,qwen3-coder-flash");
expect(configContent.Router.longContext).toBe("dashscope,qwen3-coder-plus");
});
});

Expand Down
10 changes: 5 additions & 5 deletions bin/claude-code-router-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,17 @@ class ClaudeCodeRouterConfig {
api_base_url:
"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
api_key: dashscopeApiKey,
models: ["qwen3-235b-a22b"],
models: ["qwen3-coder-plus", "qwen3-coder-flash"],
transformer: {
use: ["dashscope"],
},
},
],
Router: {
default: "dashscope,qwen3-235b-a22b",
think: "dashscope,qwen3-235b-a22b",
background: "dashscope,qwen3-235b-a22b",
longContext: "dashscope,qwen3-235b-a22b",
default: "dashscope,qwen3-coder-plus",
think: "dashscope,qwen3-coder-plus",
background: "dashscope,qwen3-coder-flash",
longContext: "dashscope,qwen3-coder-plus",
},
};

Expand Down