Skip to content

fix(gateway): emit images_enabled instead of enable_images - #1171

Merged
edenreich merged 3 commits into
mainfrom
fix/issue-1170
Sep 3, 2026
Merged

edenreich merged 3 commits into
mainfrom
fix/issue-1170

Conversation

@inference-gateway-maintainer

@inference-gateway-maintainer inference-gateway-maintainer Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #1170

Summary

Renames the Images API toggle the CLI emits from ENABLE_IMAGES to IMAGES_ENABLED, following the schemas rename (inference-gateway/schemas#195) that aligns it with the other <FEATURE>_ENABLED toggles. The gateway keeps the old name as a deprecated alias for one release (inference-gateway/inference-gateway#588, not yet shipped at the time of this change), so the minimum gateway version is documented at both emission sites instead of the CLI carrying a compat shim - it emits only the new name.

Changes

  • internal/gateway/manager.go: runContainer now passes IMAGES_ENABLED=true via docker -e, runBinary now sets IMAGES_ENABLED=true in the child env (both gated on image generation/edit/variation tools being enabled)
  • Both emission sites carry a one-line note: gateway images predating the rename ([FEATURE] /explorer: VS Code-style file tree + fuzzy file finder in the chat TUI #588) silently ignore the new toggle, i.e. minimum gateway version is the release that ships that rename - pin the exact number once it ships
  • examples/telegram-channel/docker-compose.yml: IMAGES_ENABLED: true
  • examples/telegram-channel/README.md: updated the env var reference
  • No compat shim: the CLI emits only the new name; zero occurrences of the old name remain in the repo

Notes

follows the schemas rename (inference-gateway/schemas#195) to the feature_enabled toggle order. the gateway keeps the old name as a deprecated alias for one release (#588, not yet shipped), so older gateway images predate the rename and silently ignore the new toggle - noted at both emission sites; examples updated to match.
Comment thread internal/gateway/manager.go Resolved
Comment thread internal/gateway/manager.go Resolved
@edenreich
edenreich merged commit 22d47ed into main Sep 3, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-1170 branch September 3, 2026 14:15
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.189.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] Rename ENABLE_IMAGES -> IMAGES_ENABLED

1 participant