Repository navigation
feat(meta): add Muse Image - #11918
Merged
Merged
Conversation
Contributor
|
No actionable findings. |
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.
I added Muse Image (
muse-image-1.0) to themetaprovider. The lab file inmodels/meta/already existed, so this is just the provider entry.It inherits modalities from the lab file (text plus PNG/JPEG/WebP in, WebP/PNG/JPEG out) and has one
[api.images]table onhttps://api.meta.ai/v1withsdk.opencodeai = "@opencode/ai/providers/meta/images". That entrypoint doesn't exist in@opencode/aiyet, so opencode just skips this model until it lands.Sources:
muse-image-1.0is the only Muse Image model, text and image in, image out)/v1/images/generationsand/v1/images/edits, OpenAI Images compatible, plus a JSON edit body withimages[].image_url)I checked edits live on
/v1/images/editswith a data URL input and it does a real edit of the input image, so image input stays in the modalities.Meta also serves Muse Image over the Responses API, but I only listed the images API here since that's what the image path in opencode uses. Meta doesn't document input image size limits or a fixed output resolution, so I left those out.
Checks:
bun validatepasses.bun run v1:checksays v1 output is byte-identical.bun testhas the same 13 failures as cleandev.