Skip to content

[DOCS] ENABLE_VISION described as rejecting image inputs when disabled #650

Closed

Description

@inference-gateway-maintainer

Summary

The gateway docs describe ENABLE_VISION incorrectly. The wording says that when ENABLE_VISION is off, requests carrying image content are rejected. The gateway does not do that.

In api/routes.go (ChatCompletionsHandler) all image handling sits inside if router.cfg.EnableVision. With the flag off, that block is skipped and image content parts are forwarded to the upstream provider untouched - nothing returns an error. With the flag on, the handler checks core.ModelAcceptsImages and silently strips image parts for models it does not recognize as vision-capable, continuing with text only; that stripping behavior was never documented.

The gateway repo has been corrected in inference-gateway/inference-gateway#596 (README.md, openapi.yaml x-config, regenerated Configurations.md and config/config.go). Any page on the docs site carrying the same claim needs the same fix.

Affected pages: wherever ENABLE_VISION, vision, or multimodal support is described (configuration reference and any vision/multimodal guide).

Corrected wording: when ENABLE_VISION is false (the default) the gateway does not inspect image content and forwards it to the provider untouched; when true, image parts are stripped for models not recognized as vision-capable and passed through for models that are.

Acceptance Criteria

Activity

  1. added
    documentation
    on Sep 3, 2026
  2. moved this to Todo in 2026on Sep 3, 2026
  3. edenreich commented on Sep 3, 2026

    @edenreich
    Contributor

    @claude Can you work on this? use /ponytail:ponytail

  4. added theissue type on Sep 3, 2026
  5. inference-gateway-maintainer commented on Sep 3, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 2m 2s —— View job • docs/issue-650-20260903-1756 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-650-20260903-1756?quick_pull=1&title=Issue%20%23650%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23650%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    ENABLE_VISION docs corrected

    PR: #652

    • Gather context / locate affected pages
    • Pull canonical wording from upstream openapi.yaml x-config
    • configuration.md - table row + prose
    • supported-providers.md - vision note
    • api-reference.md - vision section intro + note
    • troubleshooting.md - rewrote the "Image input is rejected" section
    • Validate (lint:md, format:check, build) - all pass
    • Commit + PR + board moved to QA

    What changed

    Four pages carried the "images are rejected when the flag is off" claim. All now describe the real behavior:

    Page Change
    configuration.md ENABLE_VISION row now uses the canonical generated description from #596; prose below the table rewritten (off = forwarded untouched, on = stripped for models not recognized as vision-capable)
    supported-providers.md Vision note no longer says requests are rejected
    api-reference.md Section intro and closing note corrected
    troubleshooting.md "Image input is rejected" replaced with "The model answers as if it never saw the image" - the symptom users actually hit, since a stripped image returns 200. Also fixed the config-vars entry that said the gateway "continues to reject images"

    All edits sit outside the GENERATED:* regions, so no task generate run was needed.

    examples.md only instructs users to set the flag and makes no incorrect claim, so it was left alone.
    | Branch

  6. moved this from Todo to In progress in 2026on Sep 3, 2026
  7. moved this from In progress to QA in 2026on Sep 3, 2026
  8. moved this from QA to Done in 2026on Sep 3, 2026
  9. inference-gateway-releaser commented on Sep 22, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.14 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions