feat: chat model selector#15
Open
psrednicki wants to merge 14 commits into
Open
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…ctured error descriptors
…mproved readability
…ing error checking
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.
Add
--modelflag to chat and newmodelscommandAdds model selection to the CLI chat feature. Users can pick an AI model with
--modeland discover available models with the newmodelscommand [web:2][web:6].Changes
--model <id>flag onchat— optional flag parsed from any position in the args; omitted from the CDP payload when not specified so the browser uses its default.modelscommand — callsopera_list_models, formats a bulleted list with*marking the default; returns a clear error when the browser doesn't support listing.UNSUPPORTED_OPERATIONerror code added toCdpError.chat(documents--model) and newmodelscommand.parseChatArgscovering flag positioning, missing value, and empty prompt.specs/chat-model-selector.mddocuments CLI UX, CDP contract, and MCP layer design.Usage
opera-browser-cli chat --model claude-sonnet-4 "Summarize this page" opera-browser-cli modelsNotes
feat/model-selectorinopera-devtools-mcpaddsopera_list_modelstool andmodelparam onopera_chat.--modelapplies tochatonly — extensible to other AI commands later.