diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-modal.http b/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-modal.http index ab8aa85c6..8a58fa990 100644 --- a/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-modal.http +++ b/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-modal.http @@ -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 } diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-role.http b/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-role.http index b459a5a95..87502e313 100644 --- a/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-role.http +++ b/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-role.http @@ -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}}