feat: discover Modal models - #39066
Merged
Merged
Conversation
Contributor
|
The following comment was made by an LLM, it may be inaccurate: Potential duplicate PRs found:
|
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
3kaiu
pushed a commit
to 3kaiu/opencode-x
that referenced
this pull request
Jul 31, 2026
1056674754
added a commit
to 1056674754/opencode
that referenced
this pull request
Aug 5, 2026
Upstream v1.18.9 (4da7bb4) -> v1.18.10 (7902e04), 24 commits. Functional changes: - feat: discover Modal models (anomalyco#39066) - new packages/opencode/src/plugin/modal/ - fix: use OpenCode model catalog URL (anomalyco#39672) - models.dev -> models.opencode.ai - fix(app): repair malformed persisted tabs (anomalyco#39645) - fix(app): defer model variant selector (anomalyco#39445) - fix(app): preserve agent picker for existing users (anomalyco#39300) - feat(app): migrate to solid-sonner (anomalyco#39519) - feat(app): attachment fades, duplicate guard, always-visible new session button - feat(app): review tab top bar + tab state refinements - fix(console): add public fetch compatibility flag - docs(ecosystem): add opencode-tavily plugin (anomalyco#38709) - chore: bump gitlab-ai-provider to 6.12.1 (anomalyco#39490) Conflicts resolved: 29 package.json version bumps (rebranded 1.18.10-sscity) and bun.lock (regenerated). No functional code conflicts. Verified: Modal plugin tests pass (2/2), model catalog URL applied to all 3 files, fork-only changes (small_model_fallback, skill hot-reload, server single-flight) intact. Pre-existing TUI type errors unrelated to this merge.
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.
Issue for this PR
Closes #14389.
Related to #6231.
Type of change
What does this PR do?
Modal model IDs are shared-endpoint hostnames scoped to the authenticated workspace, so they cannot be listed statically in models.dev.
This adds a built-in Modal provider plugin using OpenCode's existing
provider.modelshook. It fetches authenticatedGET /v1/models, exposes the returned endpoint hostnames as callable model IDs, and consumes the returned model metadata, including reasoning variants and interleaved reasoning. Missing metadata falls back to the corresponding models.dev template. Discovery failures return no models rather than exposing non-callable template IDs.The provider registration and Inkling fallback template landed in models.dev #3760.
How did you verify your code works?
bun test test/plugin/modal-models.test.tsbun typecheckfrompackages/opencodebun turbo typecheck(30 packages)Screenshots / recordings
Not applicable.
Checklist