feature: filter unsupported models #853

Open
opened 2026-02-16 17:28:34 -05:00 by yindo · 1 comment
Owner

Originally created by @sudo-tee on GitHub (Jul 22, 2025).

Originally assigned to: @thdxr on GitHub.

I am using github-copilot as a provider

My employer is blocking access to some models, but when opencode list models it still includes them in the results.

Is there a way to filter out theses models ?

For example in CopilotChat.nvim models that are not supported are not displayed when changing models, here is the relevant code.

https://github.com/CopilotC-Nvim/CopilotChat.nvim/blob/f7eb423baccbb27f5b5608fb91acee2d6bc769c7/lua/CopilotChat/config/providers.lua#L161

I would love to be able to filter them so I don't have false hopes when a new model drops.

Originally created by @sudo-tee on GitHub (Jul 22, 2025). Originally assigned to: @thdxr on GitHub. I am using github-copilot as a provider My employer is blocking access to some models, but when opencode list models it still includes them in the results. Is there a way to filter out theses models ? For example in CopilotChat.nvim models that are not supported are not displayed when changing models, here is the relevant code. https://github.com/CopilotC-Nvim/CopilotChat.nvim/blob/f7eb423baccbb27f5b5608fb91acee2d6bc769c7/lua/CopilotChat/config/providers.lua#L161 I would love to be able to filter them so I don't have false hopes when a new model drops.
Author
Owner

@Kivayan commented on GitHub (Nov 25, 2025):

That would be fantastic addition. Authorizing OpenRouter basically renders model selection useless due to the amount of models to scroll through.

@Kivayan commented on GitHub (Nov 25, 2025): That would be fantastic addition. Authorizing OpenRouter basically renders model selection useless due to the amount of models to scroll through.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#853