Commit dc44fe1cf9843496a57aabfe210707c118a9dd9b
1 parent
83d17051
临时提交
Showing
3 changed files
with
10 additions
and
24 deletions
.DS_Store
0 → 100644
No preview for this file type
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 | -POST {{baseUrl}}/admin-api/system/auth/login | |
| 4 | +### 对话 - 创建对话 | |
| 5 | +POST {{baseUrl}}/ai/chat/conversation/create | |
| 5 | 6 | Content-Type: application/json |
| 6 | -tenant-id: 1 | |
| 7 | +Authorization: {{token}} | |
| 7 | 8 | |
| 8 | 9 | { |
| 9 | - "username": "admin", | |
| 10 | - "password": "123456", | |
| 11 | - "captchaVerification": "PfcH6mgr8tpXuMWFjvW6YVaqrswIuwmWI5dsVZSg7sGpWtDCUbHuDEXl3cFB1+VvCC/rAkSwK8Fad52FSuncVg==", | |
| 12 | - "socialCode": "1024", | |
| 13 | - "socialState": "9b2ffbc1-7425-4155-9894-9d5c08541d62", | |
| 14 | - "socialCodeValid": true | |
| 10 | + "chatType": "userChat" | |
| 15 | 11 | } |
| 16 | 12 | |
| 17 | 13 | |
| 18 | -> {% | |
| 19 | - client.log(`Today is ${$isoTimestamp}`) | |
| 20 | -%} | |
| 21 | - | |
| 22 | -### chat call | |
| 23 | -GET {{baseUrl}}/ai/chat?modal=qianWen&conversationId=111&prompt=中国好看吗? | |
| 24 | -tenant-id: 1 | |
| 25 | -Authorization: {{xtoken}} | |
| 26 | - | |
| 27 | - | |
| 28 | - | |
| 29 | -### chat call | |
| 30 | -GET {{baseUrl}}/ai/chatStream?prompt=苹果是什么颜色?&modal=yiYan3_5_8k | |
| 31 | -tenant-id: 1 | |
| 14 | +### 对话 - id获取 | |
| 15 | +GET {{baseUrl}}/ai/chat/conversation/1781604279872581644 | |
| 32 | 16 | Authorization: {{token}} |
| 33 | 17 | |
| 34 | 18 | |
| 35 | - | |
| 19 | +### 对话 - id获取 | |
| 20 | +DELETE {{baseUrl}}/ai/chat/conversation/1781604279872581644 | |
| 21 | +Authorization: {{token}} | |
| 36 | 22 | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/http-client.env.json