Skip to content

[FEATURE] Vision model detection: route image data natively to vision-capable models #997

Closed

Description

@inference-gateway-maintainer

Summary

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.

Related

Activity

  1. moved this to Todo in 2026on Aug 3, 2026
  2. added theissue type on Aug 3, 2026
  3. moved this from Todo to In progress in 2026on Aug 3, 2026
  4. moved this from In progress to Todo in 2026on Aug 3, 2026
  5. moved this from Todo to In progress in 2026on Aug 3, 2026
  6. moved this from In progress to Todo in 2026on Aug 4, 2026
  7. edenreich commented on Aug 5, 2026

    @edenreich
    Contributor

    @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

  8. moved this from Todo to In progress in 2026on Aug 5, 2026
  9. moved this from In progress to QA in 2026on Aug 5, 2026
  10. moved this from QA to Done in 2026on Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions