Did you check the docs?
Is your feature request related to a problem? Please describe.
First off this plugin is awesome and the ability to configure prompts is crazy powerful!
For certain prompts, I need to use specific models.
Describe the solution you'd like
I'm fairly certain the opencode API allows us to specify a model when sending chat messages. It would be really awesome if I could specify the model with the prompts in the prompts config like this. That way, I can automatically use the correct model for each prompt.
prompts = {
---@class opencode.Prompt
---@field description string Description of the prompt. Shown in selection menu.
---@field prompt string The prompt to send to `opencode`, with placeholders for context like `@cursor`, `@buffer`, etc.
explain = {
description = "Explain code near cursor",
prompt = "Explain @cursor and its context",
model = "anthropic/claude-opus-4-1-20250805`
},
fix = {
description = "Fix diagnostics",
prompt = "Fix these @diagnostics",
model = "anthropic/claude-sonnet-4-20250514`
},
--- ...
Describe alternatives you've considered
Create an opencode agent and then @agent. But that requires me to configure agents and these prompts are more tied to my nvim workflow so it's great to be able to keep them with my nvim config.
Additional context
No response
Did you check the docs?
Is your feature request related to a problem? Please describe.
First off this plugin is awesome and the ability to configure prompts is crazy powerful!
For certain prompts, I need to use specific models.
Describe the solution you'd like
I'm fairly certain the opencode API allows us to specify a model when sending chat messages. It would be really awesome if I could specify the model with the prompts in the prompts config like this. That way, I can automatically use the correct model for each prompt.
Describe alternatives you've considered
Create an opencode agent and then
@agent. But that requires me to configure agents and these prompts are more tied to my nvim workflow so it's great to be able to keep them with my nvim config.Additional context
No response