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
parent 41d0a8b295
commit 6b15827246
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 = {