feat: add model capability preset picker for OpenAI Compatible provider#11902
feat: add model capability preset picker for OpenAI Compatible provider#11902roomote-v0[bot] wants to merge 3 commits intomainfrom
Conversation
Adds a searchable dropdown to the OpenAI Compatible provider settings that lets users select from all known model capabilities across every provider Roo supports (Anthropic, OpenAI, DeepSeek, Gemini, MiniMax, Mistral, Moonshot/Kimi, Qwen, SambaNova, xAI, ZAi/GLM). When a preset is selected, the model capability fields (context window, max tokens, image support, prompt caching, pricing, etc.) are automatically populated. Users can still choose "Custom" to configure everything manually as before. Changes: - packages/types: new all-model-capabilities.ts aggregating presets - webview-ui: preset picker dropdown in OpenAICompatible.tsx - i18n: English translation keys for the new UI - Tests for both the preset data and the UI component Addresses #11674
|
@roomote please ensure all translations are correctly defined thx |
Added |
|
appear to work so fine now <3 please merge that or do something like that , i can finnaly use kimi k2.5 on NVIDIA NIM API that was so usefull and closeing issue about wrong model usage on OpenAI compatible endpoint what this PR solve ?
why should we merge that ? thx by advance <3 |
Related GitHub Issue
Closes: #11674
Description
This PR attempts to address Issue #11674 by adding a Model Capability Preset dropdown to the OpenAI Compatible provider settings.
When users select the OpenAI Compatible provider, they now see a searchable dropdown that lists all known models across every provider Roo supports. Selecting a model automatically populates the capability fields (context window, max tokens, image support, prompt caching, pricing, etc.) so users running local models via llama.cpp, exo, NVIDIA NIM, or similar tools get the same model-specific behavior as native provider users.
Key implementation details:
modelCapabilityPresetsaggregation inpackages/typesthat collects model definitions from Anthropic, OpenAI, DeepSeek, Gemini, MiniMax, Mistral, Moonshot/Kimi, Qwen, SambaNova, xAI, and ZAi/GLMOpenAICompatible.tsxusing the existing Command/Popover components, grouped by providerTrade-offs:
Test Procedure
modelCapabilityPresetsdata (6 tests inpackages/types)webview-ui)cd packages/types && npx vitest runandcd webview-ui && npx vitest run src/components/settings/providers/__tests__/OpenAICompatible.spec.tsxPre-Submission Checklist
Documentation Updates
Additional Notes
Feedback and guidance are welcome.
Interactively review PR in Roo Code Cloud