refactor: playground chat
This commit is contained in:
@@ -8,10 +8,10 @@ interface CompareContextProps {
|
||||
systemMessage?: string;
|
||||
globalParams: Record<string, any>;
|
||||
loadingStatus: Record<string, boolean>;
|
||||
handleDeleteModel: (modelname: string) => void;
|
||||
handleDeleteModel: (instanceId: symbol) => void;
|
||||
setSystemMessage?: (message: string) => void;
|
||||
setGlobalParams: (value: Record<string, any>) => void;
|
||||
setLoadingStatus: (modeName: string, status: boolean) => void;
|
||||
setLoadingStatus: (instanceId: symbol, status: boolean) => void;
|
||||
}
|
||||
const CompareContext = React.createContext<CompareContextProps>(
|
||||
{} as CompareContextProps
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface ModelSelectionItem extends Global.BaseOption<string> {
|
||||
uid: number;
|
||||
instanceId: symbol;
|
||||
type?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user