ShiShiYiBan/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-role.http

57 lines
1.5 KiB
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.

### chat - list
GET {{baseUrl}}/admin-api/ai/chat/role/list?pageNo=1&pageSize=20&search=
Authorization: {{token}}
### chat add
PUT {{baseUrl}}/admin-api/ai/chat/role/add
Content-Type: application/json
Authorization: {{token}}
{
"modelId": 9,
"name": "v1",
"avatar": "http://baidu.com",
"category": "writing",
"description": "gpt3.5",
"systemMessage": "",
"publicStatus": 0,
"sort": 0
}
### chat update
POST {{baseUrl}}/admin-api/ai/chat/role/update
Content-Type: application/json
Authorization: {{token}}
{
"id": 8,
"modelId": 9,
"name": "v2",
"avatar": "http://baidu.com",
"category": "writing",
"description": "gpt3.5",
"systemMessage": "",
"publicStatus": 0,
"sort": 0,
"status": 0
}
### chat update
POST {{baseUrl}}/admin-api/ai/chat/role/update-public-status
Content-Type: application/json
Authorization: {{token}}
{
"id": "8",
"publicStatus": true
}
### chat update
DELETE {{baseUrl}}/admin-api/ai/chat/role/delete?id=8
Authorization: {{token}}