Commit 8b310c1dcef593d4ddd6fff0a3de00dea465484c
1 parent
73f334e2
添加 chat http
Showing
2 changed files
with
45 additions
and
0 deletions
yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat.http
0 → 100644
| 1 | + | |
| 2 | + | |
| 3 | +### 登录 | |
| 4 | + | |
| 5 | +POST {{baseUrl}}/admin-api/system/auth/login | |
| 6 | +Content-Type: application/json | |
| 7 | +tenant-id: 1 | |
| 8 | + | |
| 9 | +{ | |
| 10 | + "username": "admin", | |
| 11 | + "password": "123456", | |
| 12 | + "captchaVerification": "PfcH6mgr8tpXuMWFjvW6YVaqrswIuwmWI5dsVZSg7sGpWtDCUbHuDEXl3cFB1+VvCC/rAkSwK8Fad52FSuncVg==", | |
| 13 | + "socialCode": "1024", | |
| 14 | + "socialState": "9b2ffbc1-7425-4155-9894-9d5c08541d62", | |
| 15 | + "socialCodeValid": true | |
| 16 | +} | |
| 17 | + | |
| 18 | +### chat call | |
| 19 | +POST {{baseUrl}}/admin-api/ai/chat?prompt=中国怎么样 | |
| 20 | +tenant-id: 1 | |
| 21 | +Authorization: {{token}} | |
| 22 | + | |
| 23 | + | |
| 24 | +### chat call | |
| 25 | +POST {{baseUrl}}/ai-api/chat | |
| 26 | +tenant-id: 1 | |
| 27 | +Authorization: {{token}} | |
| 28 | + | |
| 29 | + | |
| 30 | +### chat call | |
| 31 | +GET {{baseUrl}}/chat-role/list | |
| 32 | +tenant-id: 1 | |
| 33 | +Authorization: {{token}} | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | ... | ... |