fix: for gguf ref not be created, #2227

This commit is contained in:
jialin
2025-06-19 15:25:21 +08:00
parent a9b909cca1
commit be92f92991
7 changed files with 58 additions and 42 deletions
@@ -142,7 +142,7 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
const handleOnSelectModel = (model: any) => {
const item = model || {};
if (item.evaluateResult && !item.isGGUF) {
if (item.evaluated && !item.isGGUF) {
onSelectModelAfterEvaluate(item);
} else {
onSelectModel(item);
@@ -326,6 +326,7 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
const resultList = list.map((item, index) => {
return {
...item,
evaluated: true,
evaluateResult: evaluations[index] || null
};
});