【调整】根据接口设计调整,ai model

This commit is contained in:
cherishsince
2024-05-06 16:32:47 +08:00
parent 118158424b
commit c21b5f7679
16 changed files with 392 additions and 66 deletions

View File

@@ -1,19 +1,41 @@
### chat call
GET {{baseUrl}}/ai/chat/modal/list
Authorization: {{token}}
### chat call
PUT {{baseUrl}}/ai/chat/modal
Content-Type: application/json
Authorization: {{token}}
{
"modelName": "小红书Ai写作大模型",
"modelType": "yiyan",
"modalImage": "",
"modelConfig": ""
"name": "小红书Ai写作大模型-plus",
"modal": "ERNIE-3.5-8K",
"platform": "yiyan",
"imageUrl": "",
"config": {
"topK": 0.6,
"topP": 0.6,
"temperature": 0.86,
"maxTokens": 2048
}
}
### chat call
POST {{baseUrl}}/ai/chat/modal/7
Content-Type: application/json
Authorization: {{token}}
{
"name": "小红书Ai写作大模型-plus",
"modal": "ERNIE-3.5-8K",
"platform": "yiyan",
"imageUrl": "",
"config": {
"topK": 0.6,
"topP": 0.6,
"temperature": 0.86,
"maxTokens": 2048
}
}