fix for concurrency

This commit is contained in:
Henry
2024-02-15 04:03:10 +08:00
parent a71c5a109d
commit 85809a9ecc
3 changed files with 59 additions and 18 deletions
+17
View File
@@ -21,6 +21,8 @@ export type CommonType = string | number | boolean | undefined | null
export type MessageType = 'apiMessage' | 'userMessage'
export type ImageDetail = 'auto' | 'low' | 'high'
/**
* Others
*/
@@ -158,6 +160,21 @@ export interface IMultiModalOption {
audio?: Record<string, any>
}
export type MessageContentText = {
type: 'text'
text: string
}
export type MessageContentImageUrl = {
type: 'image_url'
image_url:
| string
| {
url: string
detail?: ImageDetail
}
}
/**
* Classes
*/