Skip to content

refactor: remove image variations support (schemas v0.31.1) - #125

Merged
edenreich merged 2 commits into
mainfrom
schemas-sync
Sep 23, 2026
Merged

edenreich merged 2 commits into
mainfrom
schemas-sync

Conversation

@inference-gateway-maintainer

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

Copy link
Copy Markdown
Contributor

Closes #123.

OpenAI shut down dall-e-2 on 2026-05-12, the only model that ever served the image variations endpoint. The spec and the gateway drop it in inference-gateway/schemas#223 and inference-gateway/inference-gateway#692.

Changes

  • Re-vendored openapi.yaml from inference-gateway/schemas v0.31.1 and regenerated inference_gateway/models.py (drops Endpoints.images_variations).
  • Removed create_image_variation from inference_gateway/client.py.
  • Dropped the variations test from tests/test_client.py.
  • examples/images/main.py now demos generation and edits only.

Lint (black, isort, mypy) and the test suite pass locally.

InferenceGatewayClient.create_image_variation is gone. Callers have no replacement - the upstream endpoint no longer exists.

The type sync portion was generated by the org schemas-sync reusable workflow (task oas-sync SCHEMAS_REF=refs/tags/v0.31.1).

@edenreich

Copy link
Copy Markdown
Contributor

@claude Can you work on #123 in the context of this PR ? please update the title and the body of this PR to reflect the code changes. use /ponytail:ponytail

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @edenreich's task in 1m 29s —— View job


Done - #123 implemented in this PR

  • Read issue [TASK] Refactor remove the image variations client method #123 and the PR diff
  • Removed create_image_variation from inference_gateway/client.py
  • Dropped variations from examples/images/main.py (generation + edits only)
  • Dropped test_create_image_variation from tests/test_client.py
  • Lint (task lint: black, isort, mypy) and tests (task test: 38 passed, 1 xfailed) pass
  • Committed to schemas-sync and updated the PR title/body

The vendored openapi.yaml / models.py in this PR already dropped /images/variations and Endpoints.images_variations; the commit removes the matching client surface so nothing points at a gone endpoint.

New title: refactor: remove image variations support (schemas v0.31.1). Kept refactor: per the repo's Conventional Commits table (patch bump) even though removing the public method is technically breaking - flagged as a breaking change in the PR body so it lands in the changelog. Say the word if you'd rather it be feat!:/major.
| Branch: schemas-sync

@inference-gateway-maintainer inference-gateway-maintainer Bot changed the title feat: sync generated types with schemas v0.31.1 refactor: remove image variations support (schemas v0.31.1) Sep 23, 2026
@edenreich
edenreich merged commit 7f83990 into main Sep 23, 2026
1 check passed
@edenreich
edenreich deleted the schemas-sync branch September 23, 2026 14:43
inference-gateway-releaser Bot added a commit that referenced this pull request Sep 23, 2026
## [0.19.1](v0.19.0...v0.19.1) (2026-09-23)

### ♻️ Improvements

* remove image variations support (schemas v0.31.1) ([#125](#125)) ([7f83990](7f83990))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.19.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

bot Opened by an org automation released Shipped in a release schema sync

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

[TASK] Refactor remove the image variations client method

1 participant