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

52 lines
1022 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.

### chat - list
GET {{baseUrl}}/ai/chat/role/list?pageNo=1&pageSize=20&search=
Authorization: {{token}}
### chat add
PUT {{baseUrl}}/ai/chat/role
Content-Type: application/json
Authorization: {{token}}
{
"modelId": 1,
"roleName": "v1",
"roleIntroduce": "gpt3.5",
"roleSource": "system",
"classify": "writing",
"visibility": "public",
"topK": 0.2,
"topP": 0.4,
"temperature": 0.7
}
### chat update
POST {{baseUrl}}/ai/chat/role/1
Content-Type: application/json
Authorization: {{token}}
{
"modelId": 1,
"roleName": "v1---hh😄",
"roleIntroduce": "gpt3.5",
"roleSource": "system",
"classify": "writing",
"visibility": "public",
"topK": 0.2,
"topP": 0.4,
"temperature": 0.7
}
### chat update
POST {{baseUrl}}/ai/chat/role/1/update-visibility
Content-Type: application/json
Authorization: {{token}}
{
"visibility": "private"
}