iot-card-plus/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-conversation.http

37 lines
861 B
HTTP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 使 https://www.jetbrains.com/help/idea/testing-restful-web-services.htmlhttps://www.cnblogs.com/crazymakercircle/p/14317222.html
POST {{baseUrl}}/admin-api/system/auth/login
Content-Type: application/json
tenant-id: 1
{
"username": "admin",
"password": "123456",
"captchaVerification": "PfcH6mgr8tpXuMWFjvW6YVaqrswIuwmWI5dsVZSg7sGpWtDCUbHuDEXl3cFB1+VvCC/rAkSwK8Fad52FSuncVg==",
"socialCode": "1024",
"socialState": "9b2ffbc1-7425-4155-9894-9d5c08541d62",
"socialCodeValid": true
}
> {%
client.log(`Today is ${$isoTimestamp}`)
%}
### chat call
GET {{baseUrl}}/ai/chat?modal=qianWen&conversationId=111&prompt=
tenant-id: 1
Authorization: {{xtoken}}
### chat call
GET {{baseUrl}}/ai/chatStream?prompt=?&modal=yiYan3_5_8k
tenant-id: 1
Authorization: {{token}}