【优化】修改http 请求地址和请求内容
This commit is contained in:
parent
b091498040
commit
fd6ce5a627
|
@ -1,43 +1,32 @@
|
|||
|
||||
### chat call
|
||||
GET {{baseUrl}}/ai/chat/modal/list
|
||||
GET {{baseUrl}}/admin-api/ai/chat/model/list
|
||||
Authorization: {{token}}
|
||||
|
||||
|
||||
### chat call
|
||||
PUT {{baseUrl}}/ai/chat/modal
|
||||
PUT {{baseUrl}}/admin-api/ai/chat/model/add
|
||||
Content-Type: application/json
|
||||
Authorization: {{token}}
|
||||
|
||||
{
|
||||
"keyId": "1",
|
||||
"name": "小红书Ai写作大模型4.0",
|
||||
"modal": "ERNIE 4.0",
|
||||
"model": "ERNIE 4.0",
|
||||
"platform": "yiyan",
|
||||
"imageUrl": "",
|
||||
"sort": 100,
|
||||
"config": {
|
||||
"topK": 0.6,
|
||||
"topP": 0.6,
|
||||
"temperature": 0.86,
|
||||
"maxTokens": 2048
|
||||
}
|
||||
"sort": 100
|
||||
}
|
||||
|
||||
### chat call
|
||||
POST {{baseUrl}}/ai/chat/modal/7
|
||||
POST {{baseUrl}}/admin-api/ai/chat/model/update
|
||||
Content-Type: application/json
|
||||
Authorization: {{token}}
|
||||
|
||||
{
|
||||
"name": "小红书Ai写作大模型-plus",
|
||||
"modal": "ERNIE-3.5-8K",
|
||||
"id": 9,
|
||||
"keyId": "1",
|
||||
"name": "小红书Ai写作大模型3.5 8k",
|
||||
"model": "ERNIE-3.5-8K",
|
||||
"platform": "yiyan",
|
||||
"imageUrl": "",
|
||||
"sort": 1,
|
||||
"config": {
|
||||
"topK": 0.6,
|
||||
"topP": 0.6,
|
||||
"temperature": 0.86,
|
||||
"maxTokens": 2048
|
||||
}
|
||||
"sort": 100
|
||||
}
|
||||
|
|
|
@ -1,50 +1,58 @@
|
|||
|
||||
### chat角色 - list
|
||||
GET {{baseUrl}}/ai/chat/role/list?pageNo=1&pageSize=20&search=
|
||||
GET {{baseUrl}}/admin-api/ai/chat/role/list?pageNo=1&pageSize=20&search=
|
||||
Authorization: {{token}}
|
||||
|
||||
|
||||
### chat add
|
||||
PUT {{baseUrl}}/ai/chat/role
|
||||
PUT {{baseUrl}}/admin-api/ai/chat/role/add
|
||||
Content-Type: application/json
|
||||
Authorization: {{token}}
|
||||
|
||||
{
|
||||
"modelId": 1,
|
||||
"modelId": 9,
|
||||
"name": "小红书写作v1",
|
||||
"introduce": "采用gpt3.5模型,拥有小红书优质作者写作经验。",
|
||||
"classify": "writing",
|
||||
"enable": "open"
|
||||
"avatar": "http://baidu.com",
|
||||
"category": "writing",
|
||||
"description": "采用gpt3.5模型,拥有小红书优质作者写作经验。",
|
||||
"welcomeMessage": "欢迎使用小红书写作模型!",
|
||||
"systemMessage": "你是一名优秀的小红书人文、风光作者,你热爱旅游,每去往一个城市你都会用美妙的文字抒写着这座城市的大街小巷,描述着这座城市的美好。",
|
||||
"publicStatus": 0,
|
||||
"sort": 0
|
||||
}
|
||||
|
||||
|
||||
### chat update
|
||||
POST {{baseUrl}}/ai/chat/role/7
|
||||
POST {{baseUrl}}/admin-api/ai/chat/role/update
|
||||
Content-Type: application/json
|
||||
Authorization: {{token}}
|
||||
|
||||
{
|
||||
"modelId": 1,
|
||||
"name": "小红书写作v1---hh😄❀",
|
||||
"introduce": "采用gpt3.5模型,拥有小红书优质作者写作经验。0----",
|
||||
"classify": "writing",
|
||||
"enable": "close"
|
||||
"id": 8,
|
||||
"modelId": 9,
|
||||
"name": "小红书写作v2",
|
||||
"avatar": "http://baidu.com",
|
||||
"category": "writing",
|
||||
"description": "采用gpt3.5模型,拥有小红书优质作者写作经验。",
|
||||
"welcomeMessage": "欢迎使用小红书写作模型!",
|
||||
"systemMessage": "你是一名优秀的小红书人文、风光作者,你热爱旅游,每去往一个城市你都会用美妙的文字抒写着这座城市的大街小巷,描述着这座城市的美好。",
|
||||
"publicStatus": 0,
|
||||
"sort": 0,
|
||||
"status": 0
|
||||
}
|
||||
|
||||
### chat update
|
||||
POST {{baseUrl}}/ai/chat/role/6/update-visibility
|
||||
POST {{baseUrl}}/admin-api/ai/chat/role/update-public-status
|
||||
Content-Type: application/json
|
||||
Authorization: {{token}}
|
||||
|
||||
{
|
||||
"enable": "open"
|
||||
"id": "8",
|
||||
"publicStatus": true
|
||||
}
|
||||
|
||||
|
||||
|
||||
### chat update
|
||||
DELETE {{baseUrl}}/ai/chat/role/1
|
||||
Content-Type: application/json
|
||||
DELETE {{baseUrl}}/admin-api/ai/chat/role/delete?id=8
|
||||
Authorization: {{token}}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue