Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7d972851
authored
Sep 01, 2025
by
Seefs
Committed by
GitHub
Sep 01, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1680 from HynoR/fix/res
fix: update model name filtering to be case-sensitive
parents
99afd05d
e6f78733
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
web/src/pages/Setting/Ratio/ModelRationNotSetEditor.jsx
+1
-1
web/src/pages/Setting/Ratio/ModelSettingsVisualEditor.jsx
+1
-1
No files found.
web/src/pages/Setting/Ratio/ModelRationNotSetEditor.jsx
View file @
7d972851
...
@@ -131,7 +131,7 @@ export default function ModelRatioNotSetEditor(props) {
...
@@ -131,7 +131,7 @@ export default function ModelRatioNotSetEditor(props) {
// 在 return 语句之前,先处理过滤和分页逻辑
// 在 return 语句之前,先处理过滤和分页逻辑
const
filteredModels
=
models
.
filter
((
model
)
=>
const
filteredModels
=
models
.
filter
((
model
)
=>
searchText
searchText
?
model
.
name
.
toLowerCase
().
includes
(
searchText
.
toLowerCase
()
)
?
model
.
name
.
includes
(
searchText
)
:
true
,
:
true
,
);
);
...
...
web/src/pages/Setting/Ratio/ModelSettingsVisualEditor.jsx
View file @
7d972851
...
@@ -100,7 +100,7 @@ export default function ModelSettingsVisualEditor(props) {
...
@@ -100,7 +100,7 @@ export default function ModelSettingsVisualEditor(props) {
// 在 return 语句之前,先处理过滤和分页逻辑
// 在 return 语句之前,先处理过滤和分页逻辑
const
filteredModels
=
models
.
filter
((
model
)
=>
{
const
filteredModels
=
models
.
filter
((
model
)
=>
{
const
keywordMatch
=
searchText
const
keywordMatch
=
searchText
?
model
.
name
.
toLowerCase
().
includes
(
searchText
.
toLowerCase
()
)
?
model
.
name
.
includes
(
searchText
)
:
true
;
:
true
;
const
conflictMatch
=
conflictOnly
?
model
.
hasConflict
:
true
;
const
conflictMatch
=
conflictOnly
?
model
.
hasConflict
:
true
;
return
keywordMatch
&&
conflictMatch
;
return
keywordMatch
&&
conflictMatch
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment