mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
Some checks failed
Build FastGPT images in Personal warehouse / get-vars (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:amd64 runs-on:ubuntu-24.04]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / release-fastgpt-images (push) Blocked by required conditions
Document deploy / sync-images (push) Has been cancelled
Document deploy / generate-timestamp (push) Has been cancelled
Document deploy / build-images (map[domain:https://fastgpt.cn suffix:cn]) (push) Has been cancelled
Document deploy / build-images (map[domain:https://fastgpt.io suffix:io]) (push) Has been cancelled
Document deploy / update-images (map[deployment:fastgpt-docs domain:https://fastgpt.cn kube_config:KUBE_CONFIG_CN suffix:cn]) (push) Has been cancelled
Document deploy / update-images (map[deployment:fastgpt-docs domain:https://fastgpt.io kube_config:KUBE_CONFIG_IO suffix:io]) (push) Has been cancelled
* fix: openapi * fix: openapi * fix: default maxResponse load * fix: default maxResponse load * doc
66 lines
1.7 KiB
TypeScript
66 lines
1.7 KiB
TypeScript
import type { OpenAPIPath } from '../../type';
|
|
import { ChatSettingPath } from './setting';
|
|
import { ChatFavouriteAppPath } from './favourite/index';
|
|
import { ChatFeedbackPath } from './feedback/index';
|
|
import { ChatHistoryPath } from './history/index';
|
|
import { z } from 'zod';
|
|
import { CreatePostPresignedUrlResultSchema } from '../../../../service/common/s3/type';
|
|
import { PresignChatFileGetUrlSchema, PresignChatFilePostUrlSchema } from './api';
|
|
import { TagsMap } from '../../tag';
|
|
|
|
export const ChatPath: OpenAPIPath = {
|
|
...ChatSettingPath,
|
|
...ChatFavouriteAppPath,
|
|
...ChatFeedbackPath,
|
|
...ChatHistoryPath,
|
|
|
|
'/core/chat/presignChatFilePostUrl': {
|
|
post: {
|
|
summary: '获取文件上传 URL',
|
|
description: '获取文件上传 URL',
|
|
tags: [TagsMap.chatPage],
|
|
requestBody: {
|
|
content: {
|
|
'application/json': {
|
|
schema: PresignChatFilePostUrlSchema
|
|
}
|
|
}
|
|
},
|
|
responses: {
|
|
200: {
|
|
description: '成功上传对话文件预签名 URL',
|
|
content: {
|
|
'application/json': {
|
|
schema: CreatePostPresignedUrlResultSchema
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
'/core/chat/presignChatFileGetUrl': {
|
|
post: {
|
|
summary: '获取文件预览地址',
|
|
description: '获取文件预览地址',
|
|
tags: [TagsMap.chatPage],
|
|
requestBody: {
|
|
content: {
|
|
'application/json': {
|
|
schema: PresignChatFileGetUrlSchema
|
|
}
|
|
}
|
|
},
|
|
responses: {
|
|
200: {
|
|
description: '成功获取对话文件预签名 URL',
|
|
content: {
|
|
'application/json': {
|
|
schema: z.string()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|