GeezerVison is showing github.com — fix(xai): route Grok Imagine video through the @opencode/ai provider entrypoint by rekram1-node · Pull Request #13540 · anomalyco/models.dev
Conversation
The three Grok Imagine video models point sdk.opencodeai at @opencode/ai/protocols/xai-video. opencode only loads non-chat models through a provider entrypoint named after their type (providers/<provider>/images, /decisions). anomalyco/opencode#63666 adds @opencode/ai/providers/xai/videos and starts loading video models. This PR points the xAI video models at that entrypoint, the same way xAI's image models use @opencode/ai/providers/xai/images.
Merge order: hold this until anomalyco/opencode#63666 ships. No opencode release loads video models yet, so nothing reads this field today, but the new path only resolves once that PR is released. The schema comment now lists videos among the provider entrypoints.
Verified with bun run validate. bun test shows the same 12 failures with and without this change (sync and snapshot tests unrelated to xAI).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Action items
- [medium] [possible mistake]
providers/xai/models/grok-imagine-video.toml:31 - Check: sdk.opencodeai = "@opencode/ai/providers/xai/videos" must name an entry point that actually resolves in the published @opencode/ai package. Why: The PR body contradicts itself: it says opencode "now ships @opencode/ai/providers/xai/videos" and also that this is "safe to merge before the opencode side ships". Nothing in the repo corroborates a provider /videos entry point — no other model file uses one, and the OpenRouter and Vercel sync modules set opencodeai = "none" for their video models even though they use their own packages' /images, /embeddings and /decisions entry points. bun validate only checks the path against a regex, so passing validation does not confirm the module exists. If the entry point is not yet published, this change replaces the current resolvable @opencode/ai/protocols/xai-video with a dangling module path, breaking video-model loading for consumers that resolve it, and the updated packages/core/src/schema-v2.ts:839 comment would document a nonexistent convention. Action: Cite the @opencode/ai release/PR that adds providers/xai/videos and confirm it is published, or hold this change (including the schema comment edit) until the opencode side ships; reconcile the two conflicting statements in the PR body. The same unverified value is introduced at providers/xai/models/grok-imagine-video-1.5.toml:10 and providers/xai/models/grok-imagine-video-1.5-lite.toml:13.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This branch was previously deployed
1 inactive
deployment
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.