Repository navigation
chore(deps): bump sdk to v1.39.1 and drop the image variations pass-through - #1278
Merged
Merged
Conversation
…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
Bot
marked this pull request as ready for review
September 23, 2026 15:44
inference-gateway-maintainer
Bot
requested a review
from a team
as a code owner
September 23, 2026 15:44
3 tasks
Contributor
|
🎉 This PR is included in version 0.206.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #1273
Summary
Drops the CLI's last ties to
POST /v1/images/variationsby 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 removedCreateImageVariationpass-through, and every prompt, comment and doc now says theImageVariationtool goes through/v1/images/edits- which is what it has done all along via the variation prompt ininternal/agent/infrastructure/image_service.go.Changes
github.com/inference-gateway/sdkfrom v1.39.0 to v1.39.1 ingo.mod.CreateImageVariationpass-through frominternal/platform/adapters/anthropic_messages.go(the SDK method is gone, so thevar _ sdk.Clientassertion now holds without it).tests/mocks/sdk/fake_client.gowithtask mocks:generate./v1/images/editsinconfig/prompts.go(the tool description the model reads),config/config.go(theimage_variationcomment),internal/agent/tools/image_variation.go,docs/tools-reference.mdanddocs/shortcuts-guide.md.variationPromptcomment ininternal/agent/infrastructure/image_service.goso 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:runpasses (mod tidy, mocks, fmt, lint:imports, golangci-lint 0 issues, markdownlint)./v1/images/variationsremains (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.