fix: download file error

This commit is contained in:
jialin
2025-11-12 11:01:13 +08:00
parent 7eedea8035
commit 11a676be83
16 changed files with 77 additions and 50 deletions
@@ -191,25 +191,6 @@ const AddModal: React.FC<AddModalProps> = (props) => {
size: number;
quantization: string;
}) => {
// const spec = _.find(specListRef.current, (item: CatalogSpec) => {
// if (data.size && data.quantization) {
// return (
// item.size === data.size &&
// item.backend === data.backend &&
// item.quantization === data.quantization
// );
// }
// if (data.size) {
// return item.size === data.size && item.backend === data.backend;
// }
// if (data.quantization) {
// return (
// item.quantization === data.quantization &&
// item.backend === data.backend
// );
// }
// return item.backend === data.backend;
// });
const defaultSpec = _.find(
specListRef.current,
(item: CatalogSpec) => item.mode === data.mode
@@ -252,6 +252,7 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
checkTokenRef.current = createAxiosToken();
const evaluations = await evaluationsModelSpec(
{
cluster_id: clusterId!,
model_specs: repoList
},
{