fix: gpu selector issues

This commit is contained in:
jialin
2025-10-28 11:17:29 +08:00
parent 697f1f9c25
commit a86bed294e
7 changed files with 52 additions and 30 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
import { PageActionType } from '@/config/types';
import React from 'react';
import { BackendOption, DeployFormKey } from './types';
import { BackendOption, DeployFormKey, FormData } from './types';
type EmptyObject = Record<never, never>;
@@ -17,10 +17,11 @@ interface FormContextProps {
isGGUF?: boolean;
formKey: DeployFormKey;
source: string;
pageAction: PageActionType;
action: PageActionType;
gpuOptions: CascaderOption[];
workerLabelOptions: CascaderOption[];
backendOptions: BackendOption[];
initialValues?: FormData; // for editing model
onValuesChange?: (changedValues: any, allValues: any) => void;
onBackendChange: (backend: string, option: any) => void;
}