新增 ChatDto 数据传输对象,更新聊天接口以支持知识库功能,优化聊天服务逻辑,调整前端组件以提升用户体验。

This commit is contained in:
ccmjga
2025-06-28 22:31:20 +08:00
parent 3e1d7e6fee
commit b6ecc929b0
30 changed files with 268 additions and 176 deletions

View File

@@ -894,7 +894,7 @@
"content": {
"application/json": {
"schema": {
"type": "string"
"$ref": "#/components/schemas/ChatDto"
}
}
},
@@ -1580,7 +1580,8 @@
"DocUpdateDto": {
"required": [
"enable",
"id"
"id",
"libId"
],
"type": "object",
"properties": {
@@ -1588,6 +1589,10 @@
"type": "integer",
"format": "int64"
},
"libId": {
"type": "integer",
"format": "int64"
},
"enable": {
"type": "boolean"
}
@@ -1868,6 +1873,29 @@
}
}
},
"ChatDto": {
"required": [
"message",
"mode"
],
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"NORMAL",
"WITH_LIBRARY"
]
},
"libraryId": {
"type": "integer",
"format": "int64"
},
"message": {
"type": "string"
}
}
},
"PageRequestDto": {
"type": "object",
"properties": {

View File

@@ -783,6 +783,8 @@ export interface components {
DocUpdateDto: {
/** Format: int64 */
id: number;
/** Format: int64 */
libId: number;
enable: boolean;
};
LlmVm: {
@@ -867,6 +869,13 @@ export interface components {
username: string;
password: string;
};
ChatDto: {
/** @enum {string} */
mode: "NORMAL" | "WITH_LIBRARY";
/** Format: int64 */
libraryId?: number;
message: string;
};
PageRequestDto: {
/** Format: int64 */
page?: number;
@@ -1888,7 +1897,7 @@ export interface operations {
};
requestBody: {
content: {
"application/json": string;
"application/json": components["schemas"]["ChatDto"];
};
};
responses: {