mirror of
https://github.com/coaidev/coai.git
synced 2025-05-22 14:30:14 +09:00
feat: add model id searching feature in model market
This commit is contained in:
parent
aef89bad70
commit
e5755a000d
@ -195,11 +195,14 @@ function MarketPlace({ search }: MarketPlaceProps) {
|
|||||||
.map((item) => t(`tag.${item}`))
|
.map((item) => t(`tag.${item}`))
|
||||||
.join(" ")
|
.join(" ")
|
||||||
.toLowerCase();
|
.toLowerCase();
|
||||||
|
const id = model.id.toLowerCase();
|
||||||
|
|
||||||
return raw.every(
|
return raw.every(
|
||||||
(item) =>
|
(item) =>
|
||||||
name.includes(item) ||
|
name.includes(item) ||
|
||||||
tag.includes(item) ||
|
tag.includes(item) ||
|
||||||
tag_translated.includes(item),
|
tag_translated.includes(item) ||
|
||||||
|
id.includes(item),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}, [supportModels, search]);
|
}, [supportModels, search]);
|
||||||
|
Loading…
Reference in New Issue
Block a user