Files
gpustack-ui/src/pages/playground/config/compare-context.ts
T
2024-09-25 16:17:25 +08:00

23 lines
694 B
TypeScript

import React from 'react';
interface CompareContextProps {
spans: {
span: number;
count: number;
};
systemMessage?: string;
globalParams: Record<string, any>;
loadingStatus: Record<symbol, boolean>;
modelFullList: (Global.BaseOption<string> & { type?: string })[];
handleApplySystemChangeToAll: (val: string) => void;
handleDeleteModel: (instanceId: symbol) => void;
setSystemMessage?: (message: string) => void;
setGlobalParams: (value: Record<string, any>) => void;
setLoadingStatus: (instanceId: symbol, status: boolean) => void;
}
const CompareContext = React.createContext<CompareContextProps>(
{} as CompareContextProps
);
export default CompareContext;