Commit bd3e65898befa518d825c5d74757e90a457425a1

Authored by cherishsince
1 parent 9ad977bd

【测试】AI对话

yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-conversation.http
1 1
2 ### 登录 详细使用 https://www.jetbrains.com/help/idea/testing-restful-web-services.html、https://www.cnblogs.com/crazymakercircle/p/14317222.html 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 Content-Type: application/json 12 Content-Type: application/json
17 Authorization: {{token}} 13 Authorization: {{token}}
18 14
19 { 15 {
20 - "roleId": 7,  
21 - "title": "新增对话" 16 + "roleId": "9"
22 } 17 }
23 18
24 -  
25 -  
26 ### 对话 - id获取 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 Authorization: {{token}} 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 Authorization: {{token}} 26 Authorization: {{token}}
39 27