fix(style): always display offloads info

This commit is contained in:
jialin
2025-03-14 16:43:36 +08:00
parent ccbc36f991
commit 38ff16f3cd
7 changed files with 72 additions and 29 deletions
+2 -1
View File
@@ -217,8 +217,9 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
return;
}
const isEndwithGGUF = _.endsWith(value, '.gguf');
const isBlobFile = value.split('/').pop().includes('sha256');
let backend = backendOptionsMap.llamaBox;
if (!isEndwithGGUF) {
if (!isEndwithGGUF && !isBlobFile) {
backend = backendOptionsMap.vllm;
}
props.onBackendChange?.(backend);