Commit de8b80699eca2f0c50063e271592fce61a23a48a

Authored by cherishsince
1 parent 27bfb0d2

修改 http 请求

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
@@ -16,7 +16,7 @@ tenant-id: 1 @@ -16,7 +16,7 @@ tenant-id: 1
16 } 16 }
17 17
18 ### chat call 18 ### chat call
19 -GET {{baseUrl}}/ai/chat?prompt=中国怎么样&modal=qianWen 19 +GET {{baseUrl}}/ai/chat?modal=qianWen&conversationId=111&prompt=中国好看吗?
20 tenant-id: 1 20 tenant-id: 1
21 Authorization: {{token}} 21 Authorization: {{token}}
22 22
yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/http-client.env.json
1 { 1 {
  2 + "global": {
  3 + "token": "--"
  4 + },
2 "dev": { 5 "dev": {
3 "baseUrl": "http://127.0.0.1:48080", 6 "baseUrl": "http://127.0.0.1:48080",
4 - "token": "Bearer 7d25823e225f4e0d8f9a96b0fa608649" 7 + "token": "Bearer 2f807aacab534a4095cec0bac9c2af40"
5 } 8 }
6 } 9 }
7 \ No newline at end of file 10 \ No newline at end of file