Skip to content

Conversation

dlqqq
Copy link

@dlqqq dlqqq commented Aug 15, 2025

Description

  • Implements a new SimpleAutocomplete component that avoids the bugs with MUI's Autocomplete component, documented in [litellm] Display model IDs to match search string  jupyterlab/jupyter-ai#1445.

  • By default, options are filtered using case-insensitive substring matching.

  • The boldMatches prop bolds matched substrings in each option when set.

  • This component is similar in UX to what existed previously, but it provides a vastly simpler API:

<SimpleAutocomplete
  options={modelsAsOptions}
  value={input}
  onChange={v => setInput(v)}
  placeholder={props.placeholder}
  boldMatches
/>

Demo

Screen.Recording.2025-08-15.at.3.03.02.PM.mov

@srdas srdas merged commit 78ab85b into srdas:litellm_model_id Aug 15, 2025
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.

2 participants