Feat: use file size limit from api (#9739)

This commit is contained in:
KVOJJJin 2024-10-24 22:55:17 +08:00 • committed by GitHub
commit 5d1424f67c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 205 additions and 28 deletions

View file

@ -1,4 +1,5 @@
import type { Resolution, TransferMethod, TtsAutoPlay } from '@/types/app'
import type { FileUploadConfigResponse } from '@/models/common'
export type EnabledOrDisabled = {
enabled?: boolean
@ -38,6 +39,7 @@ export type FileUpload = {
allowed_file_extensions?: string[]
allowed_file_upload_methods?: TransferMethod[]
number_limits?: number
fileUploadConfig?: FileUploadConfigResponse
} & EnabledOrDisabled
export type AnnotationReplyConfig = {