chore: get start from deploying

This commit is contained in:
jialin
2025-02-24 11:47:06 +08:00
parent bcbefe29e7
commit 529b3cb18f
9 changed files with 52 additions and 40 deletions
+12 -1
View File
@@ -19,6 +19,7 @@ import {
queryModelsList
} from './apis';
import TableList from './components/table-list';
import { backendOptionsMap } from './config';
import { ListItem } from './config/types';
const Models: React.FC = () => {
@@ -266,7 +267,17 @@ const Models: React.FC = () => {
item.name = name;
return item;
});
setCatalogList(list || []);
const deepseekr1dstill = _.toLower('DeepSeek-R1-Distill-Qwen-1.5B');
const resultList = list?.filter((item: any) => {
return (
item.backend === backendOptionsMap.llamaBox &&
(_.toLower(item?.huggingface_repo_id)?.indexOf(deepseekr1dstill) >
-1 ||
_.toLower(item?.model_scope_model_id)?.indexOf(deepseekr1dstill) >
-1)
);
});
setCatalogList(resultList || []);
} catch (error) {
// ignore
}