Repository navigation
feat(ai): load Meta Muse Image through a meta/images entrypoint - #60081
Merged
Merged
Conversation
There was a problem hiding this comment.
Looks sound. The new providers/meta/images entrypoint follows the same pattern as the other image entrypoints, and core's built-in table registers it. I checked that Provider.loadPackage("@opencode/ai/providers/meta/images") returns a module with model. The entrypoint test (22 pass) and typecheck:tsc in packages/ai and packages/core are clean. I couldn't check a real Muse Image call because there are no Meta credentials here.
Public API: adds the @opencode/ai/providers/meta/images export (model, Settings) and Meta.imageModel. Backwards compatible; nothing existing changes.
No concerns.
1 task done
1 task
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.
Meta's Muse Image (
meta/muse-image-1.0) is in models.dev now (anomalyco/models.dev#11918), but core skipped it: the catalog points at@opencode/ai/providers/meta/images, and that entrypoint didn't exist. The Meta image code itself was already inpackages/ai, it just had no way in.With this, anyone with a Meta key gets Muse Image in
image_generate, for both new images and edits.Visual
Verification
packages/ai: the entrypoint test now loads@opencode/ai/providers/meta/imagesand checks the URL (https://api.meta.ai/v1/images/generations), auth and settings it sends. 22 pass.bun run typecheck:tscis clean.packages/core:bun run typecheck:tscis clean. I also ran the live models.dev catalog throughModelsDev.decodeSnapshoton this branch:meta/muse-image-1.0comes out as an image model on@opencode/ai/providers/meta/imagesthat accepts images.bun run checkpasses.Added by the opencode bot (AI-generated).
Public API: adds the @opencode/ai/providers/meta/images entrypoint (backwards compatible)