Skip to content

chore(deps): bump sdk to v1.39.1 and drop the image variations pass-through - #1278

Merged
edenreich merged 2 commits into
mainfrom
fix/issue-1273
Sep 23, 2026
Merged

edenreich merged 2 commits into
mainfrom
fix/issue-1273

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Resolves #1273

Summary

Drops the CLI's last ties to POST /v1/images/variations by bumping the SDK to v1.39.1, the release without image variations (schemas v0.31.1, inference-gateway/sdk#190). The Anthropic messages adapter no longer implements the removed CreateImageVariation pass-through, and every prompt, comment and doc now says the ImageVariation tool goes through /v1/images/edits - which is what it has done all along via the variation prompt in internal/agent/infrastructure/image_service.go.

Changes

  • Bumped github.com/inference-gateway/sdk from v1.39.0 to v1.39.1 in go.mod.
  • Removed the CreateImageVariation pass-through from internal/platform/adapters/anthropic_messages.go (the SDK method is gone, so the var _ sdk.Client assertion now holds without it).
  • Regenerated tests/mocks/sdk/fake_client.go with task mocks:generate.
  • Repointed the endpoint text to /v1/images/edits in config/prompts.go (the tool description the model reads), config/config.go (the image_variation comment), internal/agent/tools/image_variation.go, docs/tools-reference.md and docs/shortcuts-guide.md.
  • Reworded the variationPrompt comment in internal/agent/infrastructure/image_service.go so no code references the removed endpoint.

Verification

  • go build -tags purego ./... passes (robotgo/X11 is a pre-existing bare-build limitation on this runner).
  • task precommit:run passes (mod tidy, mocks, fmt, lint:imports, golangci-lint 0 issues, markdownlint).
  • Repo-wide grep: no reference to /v1/images/variations remains (CHANGELOG.md is generated and untouched).

no docs ticket: internal-only refactor - this repo's own docs are updated in this PR, and no user-facing behavior changes.

…hrough

sdk v1.39.1 removes CreateImageVariation (schemas v0.31.1), so the anthropic messages adapter no longer delegates it and the sdk fake is regenerated.
the tool already renders variations through /v1/images/edits; the tool description, config comment, tool and doc comments said /v1/images/variations, which the schema now drops.
@inference-gateway-maintainer
inference-gateway-maintainer Bot marked this pull request as ready for review September 23, 2026 15:44
@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner September 23, 2026 15:44
@inference-gateway-maintainer inference-gateway-maintainer Bot moved this to Todo in 2026 Sep 23, 2026
@edenreich
edenreich merged commit 05093b5 into main Sep 23, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-1273 branch September 23, 2026 16:29
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.206.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 23, 2026
@edenreich edenreich moved this from Todo 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

released Shipped in a release

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

[TASK] Refactor drop the images variations endpoint pass-through

1 participant