GeezerVison is showing github.com — feat(app): start voice with the newest GPT-Live model the server lists by Tarquinen · Pull Request #65506 · anomalyco/opencode
Conversation
Tarquinen
commented
Nov 22, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
None.
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
Since #65491 the server lists voice models from models.dev, newest first, each with an engine. The app still required and sent the fixed name gpt-live-1, so voice would break once models.dev retires it, and it never used a newer GPT-Live model.
The app now picks the first available openai-live model with WebRTC from the server's list and sends that name.
- require gpt-live-1, send gpt-live-1
+ send the first available openai-live model with WebRTC (newest first)
No GPT-Live model available still fails the call as unavailable, as before. Voice now needs a server with #65491; an older server's list has no engine, so voice shows as unavailable there.
How did you verify your code works?
bun test src/voice in packages/app (the new newest-model test fails on dev), bun typecheck and bun run typecheck:tsc in packages/app, bun run lint at the root, and bun run check:generated in packages/client and packages/protocol.
- Ran a local server with a dummy OpenAI key, which lists
gpt-live-1.1 and gpt-live-1, and drove the app's VoiceTransport against it: dev sends gpt-live-1 and this sends gpt-live-1.1. Without a key it fails as unavailable and sends no session request.
Screenshots / recordings
Not a UI change.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The voice transport required and sent the fixed name gpt-live-1, so it
would break once models.dev retires that model and never used a newer
one. Since #65491 the server lists models newest first with an engine id,
so pick the first available openai-live entry with WebRTC and send its
model.
Verified: app voice tests, bun typecheck, typecheck:tsc, root lint, and
client/protocol check:generated. Against a local server with a dummy
OpenAI key, dev sent gpt-live-1 and this sends gpt-live-1.1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. The app now takes the first available openai-live model with WebRTC from the server's list, and since the server sorts each engine's models newest first, that is the newest GPT-Live model. It also covers the hosted OpenCode GPT-Live source, which is listed under the same engine. I checked it with bun test src/voice (all pass). The new newest-model test fails against the base transport.ts and passes with this change. typecheck:tsc is clean. I couldn't run a real call because that needs WebRTC and an OpenAI key.
Public API is unchanged: the change is app-side only and uses the existing engine field of the voice models response.
No concerns.
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.
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.
|