added sorting to model dropdows
This commit is contained in:
parent
2709c71b85
commit
d6551d0db2
1 changed files with 2 additions and 2 deletions
|
@ -281,7 +281,7 @@ const SettingsDialog = ({
|
|||
? chatModelProvider.map((model) => ({
|
||||
value: model.name,
|
||||
label: model.displayName,
|
||||
}))
|
||||
})).sort((a, b) => a.label.localeCompare(b.label))
|
||||
: [
|
||||
{
|
||||
value: '',
|
||||
|
@ -392,7 +392,7 @@ const SettingsDialog = ({
|
|||
? embeddingModelProvider.map((model) => ({
|
||||
label: model.displayName,
|
||||
value: model.name,
|
||||
}))
|
||||
})).sort((a, b) => a.label.localeCompare(b.label))
|
||||
: [
|
||||
{
|
||||
label: 'No embedding models available',
|
||||
|
|
Loading…
Add table
Reference in a new issue