mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-20 00:17:44 +00:00
fix(ai): update partner default models
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user