feat: [frontend] support vision (#1518)

Co-authored-by: Joel <iamjoel007@gmail.com>
This commit is contained in:
zxhlyh 2023-11-13 22:32:39 +08:00 committed by GitHub
commit 6b15827246
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
74 changed files with 3159 additions and 339 deletions

View file

@ -176,6 +176,7 @@ export type PluginProvider = {
export type FileUploadConfigResponse = {
file_size_limit: number
batch_count_limit: number
image_file_size_limit?: number | string
}
export type DocumentsLimitResponse = {

View file

@ -1,3 +1,5 @@
import type { VisionFile } from '@/types/app'
// Log type contains key:string conversation_id:string created_at:string quesiton:string answer:string
export type Conversation = {
id: string
@ -78,6 +80,7 @@ export type MessageContent = {
from_source?: 'admin' | 'user'
from_end_user_id?: string
}>
message_files: VisionFile[]
}
export type CompletionConversationGeneralDetail = {