Skip to content

fix: Improve Kimi model search and add fallback models#5704

Open
Patel230 wants to merge 3 commits intoKilo-Org:mainfrom
Patel230:fix/kimi-k2.5-azure-support
Open

fix: Improve Kimi model search and add fallback models#5704
Patel230 wants to merge 3 commits intoKilo-Org:mainfrom
Patel230:fix/kimi-k2.5-azure-support

Conversation

@Patel230
Copy link

@Patel230 Patel230 commented Feb 6, 2026

Summary

Improve Kimi model search in OpenAI Compatible provider by adding search normalization and Kimi models as fallback.

Problem

  1. Case-sensitive search - Model search was case-sensitive, making it difficult to find models
  2. Missing Kimi models - When using Azure Cognitive Services or other providers, Kimi models like kimi-k2.5 were not appearing in the search
  3. Dash/space mismatch - Searching for kimi k2.5 (with space) did not match kimi-k2.5 (with dash)

Changes

1. Search Normalization

  • Normalize dashes, spaces, and underscores for fuzzy matching
  • kimi k2.5 now matches kimi-k2.5
  • kimik2 matches kimi-k2-thinking

2. Kimi Fallback Models

  • Detect Kimi endpoints (kimi, moonshot, api.moonshot.ai/cn)
  • Always include Kimi models as fallback even if API fetch fails
  • Use kimi-k2-thinking as default model for Kimi endpoints

3. Before vs After

Search Before After
kimi k2.5 No match for kimi-k2.5 ✅ Finds kimi-k2.5
kimik2 No match ✅ Finds both kimi-k2-thinking and kimi-k2.5
kimi Case-sensitive ✅ All 7 Kimi models appear

Files Changed

  • webview-ui/src/components/settings/ModelPicker.tsx - Search normalization
  • webview-ui/src/components/settings/providers/OpenAICompatible.tsx - Kimi fallback models

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-bot
Copy link

changeset-bot bot commented Feb 6, 2026

🦋 Changeset detected

Latest 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
@Patel230 Patel230 changed the title fix(ui): add case-insensitive model search in ModelPicker fix: Improve Kimi model search and add fallback models Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant