Commit bd3e65898befa518d825c5d74757e90a457425a1
1 parent
9ad977bd
【测试】AI对话
Showing
1 changed file
with
7 additions
and
19 deletions
yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-conversation.http
| 1 | 1 | |
| 2 | 2 | ### 登录 详细使用 https://www.jetbrains.com/help/idea/testing-restful-web-services.html、https://www.cnblogs.com/crazymakercircle/p/14317222.html |
| 3 | 3 | |
| 4 | -### 对话 - 创建对话 | |
| 5 | -PUT {{baseUrl}}/ai/chat/conversation/createConversation | |
| 6 | -Content-Type: application/json | |
| 7 | -Authorization: {{token}} | |
| 8 | 4 | |
| 9 | -{ | |
| 10 | - "title": "新增对话" | |
| 11 | -} | |
| 5 | +### 对话 - list | |
| 6 | +GET {{baseUrl}}/admin-api/ai/chat/conversation/list | |
| 7 | +Authorization: {{token}} | |
| 12 | 8 | |
| 13 | 9 | |
| 14 | 10 | ### 对话 - 创建对话 |
| 15 | -PUT {{baseUrl}}/ai/chat/conversation/createRoleConversation | |
| 11 | +POST {{baseUrl}}/admin-api/ai/chat/conversation/create | |
| 16 | 12 | Content-Type: application/json |
| 17 | 13 | Authorization: {{token}} |
| 18 | 14 | |
| 19 | 15 | { |
| 20 | - "roleId": 7, | |
| 21 | - "title": "新增对话" | |
| 16 | + "roleId": "9" | |
| 22 | 17 | } |
| 23 | 18 | |
| 24 | - | |
| 25 | - | |
| 26 | 19 | ### 对话 - id获取 |
| 27 | -GET {{baseUrl}}/ai/chat/conversation/1781604279872581644 | |
| 28 | -Authorization: {{token}} | |
| 29 | - | |
| 30 | - | |
| 31 | -### 对话 - list | |
| 32 | -GET {{baseUrl}}/ai/chat/conversation/list | |
| 20 | +GET {{baseUrl}}/admin-api/ai/chat/conversation/get?id=1781604279872581647 | |
| 33 | 21 | Authorization: {{token}} |
| 34 | 22 | |
| 35 | 23 | |
| 36 | 24 | ### 对话 - 删除 |
| 37 | -DELETE {{baseUrl}}/ai/chat/conversation/1781604279872581644 | |
| 25 | +DELETE {{baseUrl}}/admin-api/ai/chat/conversation/delete?id=1781604279872581647 | |
| 38 | 26 | Authorization: {{token}} |
| 39 | 27 | ... | ... |