diff --git a/apps/desktop/src/stores/__tests__/settingsStore.spec.ts b/apps/desktop/src/stores/__tests__/settingsStore.spec.ts index b89e7aa126..76c0382554 100644 --- a/apps/desktop/src/stores/__tests__/settingsStore.spec.ts +++ b/apps/desktop/src/stores/__tests__/settingsStore.spec.ts @@ -2,6 +2,7 @@ import { createPinia, setActivePinia } from "pinia"; import { beforeEach, describe, expect, it, vi } from "vitest"; import { isProxy } from "vue"; import { + AI_PROVIDER_PARTNER_PRESETS, AI_PROVIDER_PRESETS, DEFAULT_EDITOR_SETTINGS, EXECUTE_MODE_CURRENT_DEFAULT_VERSION, @@ -857,6 +858,17 @@ describe("settingsStore AI API key normalization", () => { expect(normalizeAiConfig({ endpoint: "https://api.z.ai/api/paas/v4", model: "glm-5.2" }).provider).toBe("zhipu"); }); + it("provides the current partner default models", () => { + expect(AI_PROVIDER_PARTNER_PRESETS.find((preset) => preset.id === "jalapeno-cloud")).toMatchObject({ + model: "GLM-5.3", + models: [{ name: "GLM-5.3" }, { name: "DeepSeek-V4-Pro" }, { name: "MiniMax-M3" }], + }); + expect(AI_PROVIDER_PARTNER_PRESETS.find((preset) => preset.id === "hualong-ai")).toMatchObject({ + model: "deepseek-v4.1-flash", + models: [{ name: "deepseek-v4.1-flash" }], + }); + }); + it("uses the mainland MiniMax endpoint only for new zh-CN presets", () => { expect(getAiProviderPresetDefaultEndpoint(AI_PROVIDER_PRESETS.minimax, "zh-CN")).toBe("https://api.minimaxi.com/v1"); expect(getAiProviderPresetDefaultEndpoint(AI_PROVIDER_PRESETS.minimax, "zh-TW")).toBe("https://api.minimax.io/v1"); diff --git a/apps/desktop/src/stores/settingsStore.ts b/apps/desktop/src/stores/settingsStore.ts index 7424fd885c..8cae792e7d 100644 --- a/apps/desktop/src/stores/settingsStore.ts +++ b/apps/desktop/src/stores/settingsStore.ts @@ -458,8 +458,8 @@ export const AI_PROVIDER_PARTNER_PRESETS: readonly AiPartnerProviderPreset[] = [ group: "partner", provider: "openai-compatible", endpoint: "https://api.jalapeno-cloud.ai/v1", - model: "GLM-5.2", - models: [{ name: "GLM-5.2" }, { name: "DeepSeek-V4-Pro" }, { name: "MiniMax-M3" }], + model: "GLM-5.3", + models: [{ name: "GLM-5.3" }, { name: "DeepSeek-V4-Pro" }, { name: "MiniMax-M3" }], apiStyle: "completions", authMethod: "bearer", requiresApiKey: true, @@ -474,8 +474,8 @@ export const AI_PROVIDER_PARTNER_PRESETS: readonly AiPartnerProviderPreset[] = [ group: "partner", provider: "openai-compatible", endpoint: "https://api.hualong.online/v1", - model: "gpt-5.6-terra", - models: [{ name: "gpt-5.6-terra" }], + model: "deepseek-v4.1-flash", + models: [{ name: "deepseek-v4.1-flash" }], apiStyle: "completions", authMethod: "bearer", requiresApiKey: true,