feat: add models compare

This commit is contained in:
jialin
2024-09-22 14:55:23 +08:00
parent 2e5f0d9210
commit 4f4f00f0c8
15 changed files with 794 additions and 154 deletions
@@ -0,0 +1,20 @@
import React from 'react';
interface CompareContextProps {
spans: {
span: number;
count: number;
};
systemMessage?: string;
globalParams: Record<string, any>;
loadingStatus: Record<string, boolean>;
handleDeleteModel: (modelname: string) => void;
setSystemMessage?: (message: string) => void;
setGlobalParams: (value: Record<string, any>) => void;
setLoadingStatus: (modeName: string, status: boolean) => void;
}
const CompareContext = React.createContext<CompareContextProps>(
{} as CompareContextProps
);
export default CompareContext;