Skip to content

fix: bundled image plugins use current models, and images are told by their bytes (SHFT-2983) - #106

Merged
Michaelliv merged 4 commits into
mainfrom
fix/SHFT-2983-bundled-image-plugins
Nov 23, 2026
Merged

Michaelliv merged 4 commits into
mainfrom
fix/SHFT-2983-bundled-image-plugins

Conversation

@Michaelliv

Copy link
Copy Markdown
Collaborator

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

  • together: address api.together.ai; default create model black-forest-labs/FLUX.2-dev (FLUX.1-schnell was removed 2026-08-19); steps is sent only when a call sets it.
  • openai: default gpt-image-2.6-flare; DALL-E and gpt-image-1 are removed, with the DALL-E-only style input and response_format branch.
  • xai: create uses grok-imagine-image-2.0, the model edit already used; aspectRatio lists every documented ratio.
  • recraft: create defaults to 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; style and styleId are V3-only on edits; size names aspect ratios.
  • googleImage and codemode-imagegen: default gemini-nano-banana-2.1, which Google recommends for new projects.
  • codemode-imagegen: the gpt-image-1 line (shut down 2026-12-01) is no longer listed or sized.
  • Shared reader: readImageInput reads an image's type from its bytes through core readLocalImage, 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. LoadedImage is gone; callers use core imageDataUrl / imageBase64.
  • Shared writer: writeMediaFile names an image by its bytes, so a JPEG a provider answers is not saved as .png. Other media keep their declared type.
  • Biome now covers openai, recraft, together, xai and replicate.

Behaviour changes

  • The oversize message is <plugin>: imagePath is larger than 50 MiB.
  • openai.image.create no longer takes style.
  • together no longer sends steps: 4 / steps: 28 by 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.

…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)
@Michaelliv
Michaelliv merged commit 0f5dc1f into main Nov 23, 2026
1 check passed
@Michaelliv
Michaelliv deleted the fix/SHFT-2983-bundled-image-plugins branch November 23, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant