mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-03-30 04:01:07 +00:00
Merge pull request #1680 from HynoR/fix/res
fix: update model name filtering to be case-sensitive
This commit is contained in:
@@ -131,7 +131,7 @@ export default function ModelRatioNotSetEditor(props) {
|
||||
// 在 return 语句之前,先处理过滤和分页逻辑
|
||||
const filteredModels = models.filter((model) =>
|
||||
searchText
|
||||
? model.name.toLowerCase().includes(searchText.toLowerCase())
|
||||
? model.name.includes(searchText)
|
||||
: true,
|
||||
);
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ export default function ModelSettingsVisualEditor(props) {
|
||||
// 在 return 语句之前,先处理过滤和分页逻辑
|
||||
const filteredModels = models.filter((model) => {
|
||||
const keywordMatch = searchText
|
||||
? model.name.toLowerCase().includes(searchText.toLowerCase())
|
||||
? model.name.includes(searchText)
|
||||
: true;
|
||||
const conflictMatch = conflictOnly ? model.hasConflict : true;
|
||||
return keywordMatch && conflictMatch;
|
||||
|
||||
Reference in New Issue
Block a user