fix: Improve Kimi model search and add fallback models#5704
Open
Patel230 wants to merge 3 commits intoKilo-Org:mainfrom
Open
fix: Improve Kimi model search and add fallback models#5704Patel230 wants to merge 3 commits intoKilo-Org:mainfrom
Patel230 wants to merge 3 commits intoKilo-Org:mainfrom
Conversation
Make model search case-insensitive so users can find models regardless of casing.
For example, searching for "kimi k2.5" will now find models like "Kimi-K2.5-Instruct".
Changes:
- Add custom filtering with toLowerCase() for case-insensitive search
- Disable default Command filtering with shouldFilter={false}
- Use filtered model lists for displaying results
Fixes Kilo-Org#5694
🦋 Changeset detectedLatest commit: 5d1baba The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Fixes Kimi model search in OpenAI Compatible provider by: 1. Search normalization - Model search now normalizes dashes, spaces, and underscores for fuzzy matching: - matches - matches 2. Kimi fallback models - Kimi models are now included as fallback when using OpenAI Compatible with Kimi endpoints: - Detects Kimi endpoints (kimi, moonshot, api.moonshot.ai/cn) - Always includes all Kimi models even if API fetch fails - Uses as default model for Kimi endpoints
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.
Summary
Improve Kimi model search in OpenAI Compatible provider by adding search normalization and Kimi models as fallback.
Problem
kimi-k2.5were not appearing in the searchkimi k2.5(with space) did not matchkimi-k2.5(with dash)Changes
1. Search Normalization
kimi k2.5now matcheskimi-k2.5kimik2matcheskimi-k2-thinking2. Kimi Fallback Models
kimi-k2-thinkingas default model for Kimi endpoints3. Before vs After
kimi k2.5kimi-k2.5kimi-k2.5kimik2kimi-k2-thinkingandkimi-k2.5kimiFiles Changed
webview-ui/src/components/settings/ModelPicker.tsx- Search normalizationwebview-ui/src/components/settings/providers/OpenAICompatible.tsx- Kimi fallback models