Skip to content

Commit

Permalink
Sort models in llm selection dialogue in AI Configuration View
Browse files Browse the repository at this point in the history
fixed #14441

Signed-off-by: Jonas Helming <[email protected]>
  • Loading branch information
JonasHelming committed Nov 12, 2024
1 parent 8c69d73 commit b714867
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const LanguageModelRenderer: React.FC<LanguageModelSettingsProps> = (
onChange={event => onSelectedModelChange(requirements.purpose, event)}
>
<option value=""></option>
{languageModels?.map(model => (
{languageModels?.sort((a, b) => (a.name ?? a.id).localeCompare(b.name ?? b.id)).map(model => (
<option key={model.id} value={model.id}>{model.name ?? model.id}</option>
))}
</select>
Expand Down

0 comments on commit b714867

Please sign in to comment.