feat(ai): add Qwen Token Plan Individual CN provider (#7989)

Closes #7847
This commit is contained in:
Dale Lowe 2026-11-04 18:32:45 +08:00 • committed by GitHub
parent 14b804d809
commit 3e4f872654
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 294 additions and 25 deletions

View file

@ -58,7 +58,7 @@ This table covers providers with a single primary API-key variable. Providers th
| MiniMax (China) | `MINIMAX_CN_API_KEY` |
| Moonshot AI (Global and China) | `MOONSHOT_API_KEY` |
| Qwen Token Plan and Individual | `QWEN_TOKEN_PLAN_API_KEY` |
| Qwen Token Plan (China) | `QWEN_TOKEN_PLAN_CN_API_KEY` |
| Qwen Token Plan (China) and Individual (China) | `QWEN_TOKEN_PLAN_CN_API_KEY` |
| Xiaomi MiMo | `XIAOMI_API_KEY` |
| Xiaomi MiMo Token Plan (China) | `XIAOMI_TOKEN_PLAN_CN_API_KEY` |
| Xiaomi MiMo Token Plan (Amsterdam) | `XIAOMI_TOKEN_PLAN_AMS_API_KEY` |

View file

@ -55,6 +55,7 @@ export const defaultModelPerProvider: Partial<Record<KnownProvider, string>> = {
"qwen-token-plan": "qwen3.7-max",
"qwen-token-plan-cn": "qwen3.7-max",
"qwen-token-plan-individual": "qwen3.8-max",
"qwen-token-plan-individual-cn": "qwen3.8-max",
xiaomi: "mimo-v2.6-pro",
"xiaomi-token-plan-cn": "mimo-v2.6-pro",
"xiaomi-token-plan-ams": "mimo-v2.6-pro",

View file

@ -736,6 +736,7 @@ describe("default model selection", () => {
test("qwen token plan individual default tracks current model", () => {
expect(defaultModelPerProvider["qwen-token-plan-individual"]).toBe("qwen3.8-max");
expect(defaultModelPerProvider["qwen-token-plan-individual-cn"]).toBe("qwen3.8-max");
});
test("findInitialModel selects ai-gateway default when available", async () => {