You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens with both PNG and JPEG URLs. Local file paths work correctly — the CLI properly encodes them to base64 before sending to the API.
Steps to Reproduce
zai-cli vision analyze "https://example.com/image.jpg" "What do you see?"
Observe error 1210 repeated 3 times (retry logic kicks in)
Expected Behavior
URL images should be downloaded and encoded to base64 before being sent to the Z.AI chat completions API, same as local files.
Working Case (local file)
# Download the same image locally first
zai-cli vision analyze ./image.jpg "What do you see?"# ✅ Works perfectly, returns detailed analysis
Environment
zai-cli v0.1.2 (npm global)
Node v24.11.1
Vision model: glm-5v-turbo (also fails with default glm-4.6v)
OS: Windows 10 (x64)
Root Cause
The image source handling in the vision analysis doesn't fetch URL content before passing to the API. The CLI passes the URL string directly instead of downloading and base64-encoding it first.
Activity