mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
feat(ai): add Qwen Token Plan Individual CN provider (#7989)
Closes #7847
This commit is contained in:
parent
14b804d809
commit
3e4f872654
29 changed files with 294 additions and 25 deletions
|
|
@ -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` |
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue