添加 chat http
This commit is contained in:
parent
73f334e2b4
commit
8b310c1dce
|
@ -0,0 +1,39 @@
|
|||
|
||||
|
||||
### 登录
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
### chat call
|
||||
POST {{baseUrl}}/admin-api/ai/chat?prompt=中国怎么样
|
||||
tenant-id: 1
|
||||
Authorization: {{token}}
|
||||
|
||||
|
||||
### chat call
|
||||
POST {{baseUrl}}/ai-api/chat
|
||||
tenant-id: 1
|
||||
Authorization: {{token}}
|
||||
|
||||
|
||||
### chat call
|
||||
GET {{baseUrl}}/chat-role/list
|
||||
tenant-id: 1
|
||||
Authorization: {{token}}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"dev": {
|
||||
"baseUrl": "http://127.0.0.1:48080",
|
||||
"token": "Bearer 07390ff2824a4798bcfd7f9395092181"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue