Feat/attachments (#9526)

Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: JzoNg <jzongcode@gmail.com>
This commit is contained in:
zxhlyh
2024-10-21 10:32:37 +08:00
committed by GitHub
parent 4fd2743efa
commit 7a1d6fe509
445 changed files with 11759 additions and 6922 deletions

View File

@@ -6,6 +6,7 @@ import type {
RerankingModeEnum,
WeightedScoreEnum,
} from '@/models/datasets'
import type { UploadFileSetting } from '@/app/components/workflow/types'
export enum Theme {
light = 'light',
@@ -212,7 +213,7 @@ export type ModelConfig = {
user_input_form: UserInputFormItem[]
dataset_query_variable?: string
more_like_this: {
enabled: boolean
enabled?: boolean
}
suggested_questions_after_answer: {
enabled: boolean
@@ -242,9 +243,10 @@ export type ModelConfig = {
dataset_configs: DatasetConfigs
file_upload?: {
image: VisionSettings
}
} & UploadFileSetting
files?: VisionFile[]
created_at?: number
updated_at?: number
}
export type Language = typeof LanguagesSupported[number]

View File

@@ -6,6 +6,7 @@ import type {
EnvironmentVariable,
Node,
} from '@/app/components/workflow/types'
import type { TransferMethod } from '@/types/app'
export type NodeTracing = {
id: string
@@ -108,6 +109,7 @@ export type WorkflowFinishedResponse = {
email: string
}
finished_at: number
files?: FileResponse[]
}
}
@@ -128,6 +130,17 @@ export type NodeStartedResponse = {
}
}
export type FileResponse = {
related_id: string
extension: string
filename: string
size: number
mime_type: string
transfer_method: TransferMethod
type: string
url: string
}
export type NodeFinishedResponse = {
task_id: string
workflow_run_id: string
@@ -155,6 +168,7 @@ export type NodeFinishedResponse = {
iteration_id?: string
}
created_at: number
files?: FileResponse[]
}
}