mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-16 06:33:43 +08:00
新增 ChatDto 数据传输对象,更新聊天接口以支持知识库功能,优化聊天服务逻辑,调整前端组件以提升用户体验。
This commit is contained in:
@@ -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": {
|
||||
|
||||
11
frontend/src/api/types/schema.d.ts
vendored
11
frontend/src/api/types/schema.d.ts
vendored
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user