fix: 完善AI流式后台任务与模型配置

This commit is contained in:
LoveChengke committed 2026-11-07 22:25:39 +08:00
1 parent 0b35a58f07
commit cdb64c5499
30 files changed
+1732 -150

No files matched your search

+14
View File
@@ -60,6 +60,20 @@ async function request<T>(config: AxiosRequestConfig): Promise<T> {
}
export const api = {
stageAiAttachment: (
taskId: string,
attachmentId: string,
file: File,
signal?: AbortSignal,
): Promise<null> =>
request({
method: 'PUT',
url: `/ai/tasks/${encodeURIComponent(taskId)}/files/${encodeURIComponent(attachmentId)}`,
data: file,
headers: { 'content-type': 'application/octet-stream' },
signal,
timeout: 600000,
}),
executeAi: <T>(
stepId: string,
action: AiExecutionRequest,