【优化】修改http 请求地址和请求内容

This commit is contained in:
cherishsince 2024-05-07 15:38:47 +08:00
parent b091498040
commit fd6ce5a627
2 changed files with 37 additions and 40 deletions

View File

@ -1,43 +1,32 @@
### chat call ### chat call
GET {{baseUrl}}/ai/chat/modal/list GET {{baseUrl}}/admin-api/ai/chat/model/list
Authorization: {{token}} Authorization: {{token}}
### chat call ### chat call
PUT {{baseUrl}}/ai/chat/modal PUT {{baseUrl}}/admin-api/ai/chat/model/add
Content-Type: application/json Content-Type: application/json
Authorization: {{token}} Authorization: {{token}}
{ {
"keyId": "1",
"name": "小红书Ai写作大模型4.0", "name": "小红书Ai写作大模型4.0",
"modal": "ERNIE 4.0", "model": "ERNIE 4.0",
"platform": "yiyan", "platform": "yiyan",
"imageUrl": "", "sort": 100
"sort": 100,
"config": {
"topK": 0.6,
"topP": 0.6,
"temperature": 0.86,
"maxTokens": 2048
}
} }
### chat call ### chat call
POST {{baseUrl}}/ai/chat/modal/7 POST {{baseUrl}}/admin-api/ai/chat/model/update
Content-Type: application/json Content-Type: application/json
Authorization: {{token}} Authorization: {{token}}
{ {
"name": "小红书Ai写作大模型-plus", "id": 9,
"modal": "ERNIE-3.5-8K", "keyId": "1",
"name": "小红书Ai写作大模型3.5 8k",
"model": "ERNIE-3.5-8K",
"platform": "yiyan", "platform": "yiyan",
"imageUrl": "", "sort": 100
"sort": 1,
"config": {
"topK": 0.6,
"topP": 0.6,
"temperature": 0.86,
"maxTokens": 2048
}
} }

View File

@ -1,50 +1,58 @@
### chat角色 - list ### 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}} Authorization: {{token}}
### chat add ### chat add
PUT {{baseUrl}}/ai/chat/role PUT {{baseUrl}}/admin-api/ai/chat/role/add
Content-Type: application/json Content-Type: application/json
Authorization: {{token}} Authorization: {{token}}
{ {
"modelId": 1, "modelId": 9,
"name": "小红书写作v1", "name": "小红书写作v1",
"introduce": "采用gpt3.5模型,拥有小红书优质作者写作经验。", "avatar": "http://baidu.com",
"classify": "writing", "category": "writing",
"enable": "open" "description": "采用gpt3.5模型,拥有小红书优质作者写作经验。",
"welcomeMessage": "欢迎使用小红书写作模型!",
"systemMessage": "你是一名优秀的小红书人文、风光作者,你热爱旅游,每去往一个城市你都会用美妙的文字抒写着这座城市的大街小巷,描述着这座城市的美好。",
"publicStatus": 0,
"sort": 0
} }
### chat update ### chat update
POST {{baseUrl}}/ai/chat/role/7 POST {{baseUrl}}/admin-api/ai/chat/role/update
Content-Type: application/json Content-Type: application/json
Authorization: {{token}} Authorization: {{token}}
{ {
"modelId": 1, "id": 8,
"name": "小红书写作v1---hh😄❀", "modelId": 9,
"introduce": "采用gpt3.5模型拥有小红书优质作者写作经验。0----", "name": "小红书写作v2",
"classify": "writing", "avatar": "http://baidu.com",
"enable": "close" "category": "writing",
"description": "采用gpt3.5模型,拥有小红书优质作者写作经验。",
"welcomeMessage": "欢迎使用小红书写作模型!",
"systemMessage": "你是一名优秀的小红书人文、风光作者,你热爱旅游,每去往一个城市你都会用美妙的文字抒写着这座城市的大街小巷,描述着这座城市的美好。",
"publicStatus": 0,
"sort": 0,
"status": 0
} }
### chat update ### chat update
POST {{baseUrl}}/ai/chat/role/6/update-visibility POST {{baseUrl}}/admin-api/ai/chat/role/update-public-status
Content-Type: application/json Content-Type: application/json
Authorization: {{token}} Authorization: {{token}}
{ {
"enable": "open" "id": "8",
"publicStatus": true
} }
### chat update ### chat update
DELETE {{baseUrl}}/ai/chat/role/1 DELETE {{baseUrl}}/admin-api/ai/chat/role/delete?id=8
Content-Type: application/json
Authorization: {{token}} Authorization: {{token}}