update input box
This commit is contained in:
1 parent
4e1e71b825
commit
c30ef07d29
4 files changed
+66
-17
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user