feat(ai): add Zhipu provider preset

This commit is contained in:
U1 authored and GitHub committed 2026-09-12 09:29:04 +08:00
1 parent 774f175c33
commit 0bfb1035e4
8 files changed
+72 -4

No files matched your search

+6
View File
@@ -892,6 +892,12 @@ test("AI provider presets include common hosted and local providers", () => {
assert.equal(AI_PROVIDER_PRESETS.minimax.requiresApiKey, true);
assert.equal(AI_PROVIDER_PRESETS.minimax.iconSlug, "minimax");
assert.equal(AI_PROVIDER_PRESETS.qwen.endpoint, "https://dashscope.aliyuncs.com/compatible-mode/v1");
assert.equal(AI_PROVIDER_PRESETS.zhipu.endpoint, "https://open.bigmodel.cn/api/paas/v4");
assert.equal(AI_PROVIDER_PRESETS.zhipu.model, "glm-5.3");
assert.equal(AI_PROVIDER_PRESETS.zhipu.apiStyle, "completions");
assert.equal(AI_PROVIDER_PRESETS.zhipu.authMethod, "bearer");
assert.equal(AI_PROVIDER_PRESETS.zhipu.requiresApiKey, true);
assert.equal(AI_PROVIDER_PRESETS.zhipu.iconSlug, "zhipu");
assert.equal(AI_PROVIDER_PRESETS.ollama.endpoint, "http://localhost:11434/v1");
assert.equal(AI_PROVIDER_PRESETS.ollama.requiresApiKey, false);
assert.equal(AI_PROVIDER_PRESETS.claude.authMethod, "api-key");