The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(agent): update zai vision fallback
KoNit-Kc93f2e1d592f
diff --git a/agent/auxiliary_client.py b/agent/auxiliary_client.pyindex 05744ed5611..f0220ba5419 100644--- a/agent/auxiliary_client.py+++ b/agent/auxiliary_client.py@@ -790,7 +790,7 @@ def _task_prefers_fast_model(task: Optional[str]) -> bool:# Dedicated vision models for direct providers whose main chat model differs.-_PROVIDER_VISION_MODELS: Dict[str, str] = {"xiaomi": "mimo-v2.5", "zai": "glm-5v-turbo"}+_PROVIDER_VISION_MODELS: Dict[str, str] = {"xiaomi": "mimo-v2.5", "zai": "glm-5.3-flash"}def _resolve_provider_vision_default(provider: str) -> Optional[str]:diff --git a/tests/agent/test_auxiliary_named_custom_providers.py b/tests/agent/test_auxiliary_named_custom_providers.pyindex a2b68c476e1..b66f25c59f5 100644--- a/tests/agent/test_auxiliary_named_custom_providers.py+++ b/tests/agent/test_auxiliary_named_custom_providers.py@@ -216,7 +216,7 @@ class TestResolveVisionProviderClientModelNormalization:assert provider == "zai"assert client is not None- assert model == "glm-5v-turbo" # zai has dedicated vision model in _PROVIDER_VISION_MODELS+ assert model == "glm-5.3-flash" # zai coding endpoints support this vision-capable fallbackclass TestAutoClientCacheModelCompatibility: