chore: depoly model ux

This commit is contained in:
jialin
2024-08-09 10:26:46 +08:00
parent a04773d487
commit ab8483fc42
18 changed files with 568 additions and 49 deletions
+12 -8
View File
@@ -116,17 +116,21 @@ export async function callHuggingfaceQuickSearch(params: any) {
});
}
export async function queryHuggingfaceModels(params: {
search: {
query: string;
tags: string[];
};
}) {
export async function queryHuggingfaceModels(
params: {
search: {
query: string;
tags: string[];
};
},
options?: any
) {
const result = [];
for await (const model of listModels({
...params,
limit: 100,
additionalFields: ['author']
...options,
limit: 50,
additionalFields: ['cardData']
})) {
result.push(model);
}