update input box

This commit is contained in:
AceDataCloud committed 2023-12-31 14:57:37 +08:00
1 parent 4e1e71b825
commit c30ef07d29
4 files changed
+66 -17

No files matched your search

+7 -1
View File
@@ -36,9 +36,15 @@ export enum IChatMessageState {
FAILED = 'failed'
}
export interface IChatMessageContentItem {
type: string;
text?: string;
image_url?: string;
}
export interface IChatMessage {
state?: IChatMessageState;
content: string;
content: string | IChatMessageContentItem[];
role?: typeof ROLE_SYSTEM | typeof ROLE_ASSISTANT | typeof ROLE_USER;
error?: IError;
}