Repository navigation
fix: bundled image plugins use current models, and images are told by their bytes (SHFT-2983) - #106
Merged
Merged
Conversation
…d images are told by their bytes (SHFT-2983)
…ut, descriptions state only what the docs do (SHFT-2983)
…, Recraft descriptions follow its docs, image plugins are formatted (SHFT-2983)
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.
What
The bundled image plugins named retired models and an old address, and took an image's type from its file name. SHFT-2983.
Changes
api.together.ai; default create modelblack-forest-labs/FLUX.2-dev(FLUX.1-schnellwas removed 2026-08-19);stepsis sent only when a call sets it.gpt-image-2.6-flare; DALL-E andgpt-image-1are removed, with the DALL-E-onlystyleinput andresponse_formatbranch.grok-imagine-image-2.0, the model edit already used;aspectRatiolists every documented ratio.recraftv4_1, the API's own default, and edit sends it explicitly. Descriptions follow the docs: source image under 20 MB, 16 MP, sides 256–4096 px;styleandstyleIdare V3-only on edits;sizenames aspect ratios.gemini-nano-banana-2.1, which Google recommends for new projects.gpt-image-1line (shut down 2026-12-01) is no longer listed or sized.readImageInputreads an image's type from its bytes through corereadLocalImage, for all seven image plugins. A file that is not a PNG, JPEG, WebP or GIF is refused before any request; Recraft also takes SVG.LoadedImageis gone; callers use coreimageDataUrl/imageBase64.writeMediaFilenames an image by its bytes, so a JPEG a provider answers is not saved as.png. Other media keep their declared type.openai,recraft,together,xaiandreplicate.Behaviour changes
<plugin>: imagePath is larger than 50 MiB.openai.image.createno longer takesstyle.togetherno longer sendssteps: 4/steps: 28by default.Validation
All gates pass: codemode 2,757 tests and the seven package suites. Models, addresses and limits are checked against the providers' docs. Nothing was run with a working key.