feat: add zai/glm-4.6v image understanding support (#10267)

Fixes #10265. Thanks @liuy.
This commit is contained in:
Liu Yuan
2026-02-10 10:38:09 +08:00
committed by GitHub
parent d3c71875e4
commit 33ee8bbf1d
7 changed files with 51 additions and 10 deletions

View File

@@ -116,6 +116,8 @@ export function resolveImageModelConfigForTool(params: {
preferred = "minimax/MiniMax-VL-01";
} else if (providerOk && providerVisionFromConfig) {
preferred = providerVisionFromConfig;
} else if (primary.provider === "zai" && providerOk) {
preferred = "zai/glm-4.6v";
} else if (primary.provider === "openai" && openaiOk) {
preferred = "openai/gpt-5-mini";
} else if (primary.provider === "anthropic" && anthropicOk) {