refactor: playground add comparsion

This commit is contained in:
jialin
2024-09-22 14:55:23 +08:00
parent 1abaa164f5
commit c04b9342b8
32 changed files with 1206 additions and 425 deletions
@@ -7,7 +7,7 @@ interface CompareContextProps {
};
systemMessage?: string;
globalParams: Record<string, any>;
loadingStatus: Record<string, boolean>;
loadingStatus: Record<symbol, boolean>;
handleDeleteModel: (instanceId: symbol) => void;
setSystemMessage?: (message: string) => void;
setGlobalParams: (value: Record<string, any>) => void;
+7
View File
@@ -3,3 +3,10 @@ export interface ModelSelectionItem extends Global.BaseOption<string> {
instanceId: symbol;
type?: string;
}
export interface MessageItem {
role: string;
content: string;
imgs?: { uid: string | number; dataUrl: string }[];
uid: number;
}