#Sending images via telegram gives cryptic error loop
1 messages · Page 1 of 1 (latest)
Let me check the docs and source so I don’t guess here.
I found the exact error mapping in source. Now I’m checking how image routing works with imageModel and whether Ollama/OpenAI-compat vision is the real mismatch.
That error is annoyingly generic, but with Ollama the two most likely causes are:
-
You’re using Ollama through
/v1or another OpenAI-compatible path, instead of the native Ollama API.
For Ollama, OpenClaw wantsapi: "ollama"and abaseUrlwith no/v1. The docs explicitly warn that/v1breaks tool calling.
Docs: https://docs.openclaw.ai/providers/ollama -
imageModelis not the same as “always use this for images.”
OpenClaw only usesagents.defaults.imageModelwhen the active model cannot accept images. If your current session model is marked as image-capable, OpenClaw will send the image there first. If that model/provider then rejects the image payload, you get exactly this kind of schema error.
Docs: https://docs.openclaw.ai/concepts/models
Also, the “every message after that keeps failing until restart” part sounds like the bad turn is sticking in session history. Try /new instead of restarting the whole session. If /new fixes it, that points to replay/session state getting poisoned by the failed multimodal turn.
Can you paste these so I can narrow it down?
openclaw --version
openclaw models status
openclaw status --all
Then reproduce once while tailing logs:
openclaw logs --follow
What I especially want to see is:
- whether your Ollama provider is using
api: "ollama"and no/v1 - which model is actually active for that Telegram session
- the raw 400/422 log line behind the generic “schema or tool payload” message
Helpful refs:
yeah i had image defined for glm5.1 remnant from experimentations removed it and kimi2.6 s set as image model but error persists
Yep, then I’d check these next, in this order:
-
Start a fresh session
- use
/newin that Telegram chat - if you changed defaults, the old session can still be stuck on stale replay/model state
- use
-
Check what model that Telegram session is actually using
- run
/model statusin the Telegram chat - if it still shows the old GLM/session override, changing defaults won’t help that existing session
- run
-
If you defined Ollama models manually, make sure the Kimi image model entry itself is marked image-capable:
input: ["text", "image"]Just setting
agents.defaults.imageModelis not enough if the model catalog entry says text-only. -
Make sure Ollama is native mode, not
/v1
api: "ollama"- base URL with no
/v1
- base URL with no
If it still fails after /new, please paste:
openclaw --version
openclaw models status
openclaw logs --follow
and then send one test image so we can see the raw error behind the generic message.
My guess right now is either:
- the Telegram session is still pinned to stale model/session state, or
- the Kimi model entry is still not being treated as
input: ["text","image"]by the catalog.
yes just a malconfiguration from experimenting earlier thx