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
{{ message }}
Repository navigation
[FEATURE] Vision model detection: route image data natively to vision-capable models #997
After PR #990 (vision annotation pipeline), all models - including text-only ones - can understand images via explicit tools (GetLatestFrame, ImageDecode). However, vision-capable models are still instructed to call ImageDecode() instead of receiving image data directly as base64 content. This issue tracks making the experience seamless for vision models.
Acceptance Criteria
Gateway model metadata: The gateway should expose whether a model supports vision (image input) in its metadata, so the CLI can query it at runtime rather than maintaining a hardcoded list.
Vision models get base64 images directly: When the session model is known to support vision, image data should be included as base64 content parts in the message, not as instructions to call ImageDecode().
No unnecessary ImageDecode() for vision models: Vision-capable models should not be instructed to call ImageDecode() - they should receive the image data natively and can describe it without a tool call.
Context
This is a follow-up from PR #990. The current implementation intentionally avoids model fingerprinting: any model can opt into text by calling the tools. But for models that natively support vision, this adds an unnecessary round-trip and cognitive overhead. The gateway is the natural place to advertise vision capability since it already handles model routing and could return capability metadata alongside model listings.
@infer /model deepseek/deepseek-v4-flash Can you implement this? we need to bump the sdk to latest and it will provide us modalities information. use /go /go-concurrency /ponytail:ponytail
Activity
edenreich commentedon Aug 5, 2026
@infer /model deepseek/deepseek-v4-flash Can you implement this? we need to bump the sdk to latest and it will provide us modalities information. use /go /go-concurrency /ponytail:ponytail
fix(agent): finish_reason-aware continuation and todo-aware completio…