mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-13 19:08:15 +08:00
chore: Enable case-insensitive search for large models (#4817)
This commit is contained in:
parent
3de8e8fd6a
commit
e9904e66e6
@ -27,11 +27,11 @@ const Popup: FC<PopupProps> = ({
|
|||||||
model => model.models.filter(
|
model => model.models.filter(
|
||||||
(modelItem) => {
|
(modelItem) => {
|
||||||
if (modelItem.label[language] !== undefined)
|
if (modelItem.label[language] !== undefined)
|
||||||
return modelItem.label[language].includes(searchText)
|
return modelItem.label[language].toLowerCase().includes(searchText.toLowerCase())
|
||||||
|
|
||||||
let found = false
|
let found = false
|
||||||
Object.keys(modelItem.label).forEach((key) => {
|
Object.keys(modelItem.label).forEach((key) => {
|
||||||
if (modelItem.label[key].includes(searchText))
|
if (modelItem.label[key].toLowerCase().includes(searchText.toLowerCase()))
|
||||||
found = true
|
found = true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user