Commit de8b80699eca2f0c50063e271592fce61a23a48a
1 parent
27bfb0d2
修改 http 请求
Showing
3 changed files
with
41 additions
and
2 deletions
yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-conversation.http
0 → 100644
| 1 | + | |
| 2 | +### 登录 详细使用 https://www.jetbrains.com/help/idea/testing-restful-web-services.html、https://www.cnblogs.com/crazymakercircle/p/14317222.html | |
| 3 | + | |
| 4 | +POST {{baseUrl}}/admin-api/system/auth/login | |
| 5 | +Content-Type: application/json | |
| 6 | +tenant-id: 1 | |
| 7 | + | |
| 8 | +{ | |
| 9 | + "username": "admin", | |
| 10 | + "password": "123456", | |
| 11 | + "captchaVerification": "PfcH6mgr8tpXuMWFjvW6YVaqrswIuwmWI5dsVZSg7sGpWtDCUbHuDEXl3cFB1+VvCC/rAkSwK8Fad52FSuncVg==", | |
| 12 | + "socialCode": "1024", | |
| 13 | + "socialState": "9b2ffbc1-7425-4155-9894-9d5c08541d62", | |
| 14 | + "socialCodeValid": true | |
| 15 | +} | |
| 16 | + | |
| 17 | + | |
| 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 | |
| 32 | +Authorization: {{token}} | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat.http
yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/http-client.env.json