Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: Enable case-insensitive search for large models (#4817)

xielonge9904e66e608
diff --git a/web/app/components/header/account-setting/model-provider-page/model-selector/popup.tsx b/web/app/components/header/account-setting/model-provider-page/model-selector/popup.tsx
index 5f768962f31..c09cd33a6a3 100644
--- a/web/app/components/header/account-setting/model-provider-page/model-selector/popup.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/model-selector/popup.tsx
@@ -27,11 +27,11 @@ const Popup: FC<PopupProps> = ({
model => model.models.filter(
(modelItem) => {
if (modelItem.label[language] !== undefined)
- return modelItem.label[language].includes(searchText)
+ return modelItem.label[language].toLowerCase().includes(searchText.toLowerCase())
let found = false
Object.keys(modelItem.label).forEach((key) => {
- if (modelItem.label[key].includes(searchText))
+ if (modelItem.label[key].toLowerCase().includes(searchText.toLowerCase()))
found = true
})