fix: embedding params escape

This commit is contained in:
jialin
2025-06-18 15:03:35 +08:00
parent 9295f9cef3
commit 3e76d7c321
8 changed files with 76 additions and 30 deletions
@@ -276,10 +276,8 @@ const AddModal: FC<AddModalProps> = (props) => {
};
const handleOnSelectModelAfterEvaluate = (item: any) => {
console.log('handleOnSelectModelAfterEvaluate', item);
if (item.isGGUF) {
return;
}
setIsGGUF(item.isGGUF);
setSelectedModel(item);
const modelInfo = onSelectModel(item, props.source);
if (
evaluateStateRef.current.state === EvaluateProccess.model &&
+2 -1
View File
@@ -292,7 +292,8 @@ const ModelCard: React.FC<{
);
useEffect(() => {
if (!props.selectedModel) return;
console.log('ModelCard selectedModel changed', props.selectedModel);
if (!props.selectedModel.name) return;
getModelCardData();
setIsGGUFModel(props.selectedModel.isGGUF);
@@ -343,7 +343,8 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
(item) => item.id === currentRef.current
);
if (currentItem) {
// if it is gguf, would trigger a evaluation after select a model file
if (currentItem && !currentItem.isGGUF) {
onSelectModelAfterEvaluate(currentItem);
}
} catch (error) {