You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[TASK] Refactor drop the images variations endpoint pass-through #1273
The ImageVariation tool is unaffected: it already renders variations through /v1/images/edits with a variation prompt (internal/agent/infrastructure/image_service.go). What remains:
internal/platform/adapters/anthropic_messages.go: remove the CreateImageVariation pass-through. It no longer compiles once the SDK drops the method, so land this with the SDK bump. Regenerate tests/mocks/sdk/fake_client.go with task mocks:generate.
The text that still says the tool calls /v1/images/variations should say /v1/images/edits:
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
docs/shortcuts-guide.md
Acceptance Criteria
The SDK is bumped to the release without image variations, and the adapter no longer implements CreateImageVariation.
No code, prompt or doc outside CHANGELOG.md references /v1/images/variations.
The ImageVariation tool still works through /v1/images/edits, and task precommit:run passes.
Bumped github.com/inference-gateway/sdk v1.39.0 -> v1.39.1 - the release without image variations (schemas v0.31.1, closes sdk#190).
Removed the CreateImageVariation pass-through from internal/platform/adapters/anthropic_messages.go (the SDK method is gone, so the var _ sdk.Client assertion holds without it).
Regenerated tests/mocks/sdk/fake_client.go with task mocks:generate.
Repointed 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, docs/shortcuts-guide.md, plus reworded the variationPrompt comment in internal/agent/infrastructure/image_service.go so the removed endpoint is not named anywhere.
Verification
Repo-wide grep: zero references to /v1/images/variations remain.
go build -tags purego ./... and task test (all packages) pass; task precommit:run passes (mod tidy, mocks, fmt, lint:imports, golangci-lint 0 issues, markdownlint).
The ImageVariation tool is untouched functionally - it already rendered variations through /v1/images/edits with a variation prompt.
Board: issue #1273 added to Roadmap 2026, set In progress during work and QA after the PR opened. No follow-up issues needed - the ripple effects (gateway, schemas, SDK) are already tracked in the issues linked from #1273.
Activity
edenreich commentedon Sep 23, 2026
@infer Can you work on this? please bump the sdk to latest.
inference-gateway-maintainer commentedon Sep 23, 2026
Model:
ollama_cloud/glm-5.3-flash· View JobTodos
❌ Infer Result: Failed
Model:
ollama_cloud/glm-5.3-flash· Exit Code:1· Duration: 4m 16sTokens: 415,676 in · 2,433 out · 418,109 total (13 requests)
Tool calls: 16 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
edenreich commentedon Sep 23, 2026
@infer Can you work on this? use /ponytail:ponytail
Please bump the sdk to latest.
inference-gateway-maintainer commentedon Sep 23, 2026
Model:
ollama_cloud/glm-5.3-flash· View JobTodos
Pull Request
#1278
✅ Infer Result: Success
Done. PR: #1278 (ready for review)
What changed
github.com/inference-gateway/sdkv1.39.0 -> v1.39.1 - the release without image variations (schemas v0.31.1, closes sdk#190).CreateImageVariationpass-through frominternal/platform/adapters/anthropic_messages.go(the SDK method is gone, so thevar _ sdk.Clientassertion 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.md,docs/shortcuts-guide.md, plus reworded thevariationPromptcomment ininternal/agent/infrastructure/image_service.goso the removed endpoint is not named anywhere.Verification
/v1/images/variationsremain.go build -tags purego ./...andtask test(all packages) pass;task precommit:runpasses (mod tidy, mocks, fmt, lint:imports, golangci-lint 0 issues, markdownlint).ImageVariationtool is untouched functionally - it already rendered variations through/v1/images/editswith a variation prompt.Board: issue #1273 added to Roadmap 2026, set In progress during work and QA after the PR opened. No follow-up issues needed - the ripple effects (gateway, schemas, SDK) are already tracked in the issues linked from #1273.
Model:
ollama_cloud/glm-5.3-flash· Exit Code:0· Duration: 8m 53sTokens: 2,197,152 in · 14,559 out · 2,211,711 total (30 requests)
Tool calls: 60 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
inference-gateway-releaser commentedon Sep 23, 2026
🎉 This issue has been resolved in version 0.206.0 🎉
The release is available on:
Your semantic-release bot 📦🚀