Commit fd6ce5a627c885f3fd0be4f11db5840d34a24919
1 parent
b0914980
【优化】修改http 请求地址和请求内容
Showing
2 changed files
with
37 additions
and
40 deletions
yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-modal.http
| 1 | 1 | |
| 2 | 2 | ### chat call |
| 3 | -GET {{baseUrl}}/ai/chat/modal/list | |
| 3 | +GET {{baseUrl}}/admin-api/ai/chat/model/list | |
| 4 | 4 | Authorization: {{token}} |
| 5 | 5 | |
| 6 | 6 | |
| 7 | 7 | ### chat call |
| 8 | -PUT {{baseUrl}}/ai/chat/modal | |
| 8 | +PUT {{baseUrl}}/admin-api/ai/chat/model/add | |
| 9 | 9 | Content-Type: application/json |
| 10 | 10 | Authorization: {{token}} |
| 11 | 11 | |
| 12 | 12 | { |
| 13 | + "keyId": "1", | |
| 13 | 14 | "name": "小红书Ai写作大模型4.0", |
| 14 | - "modal": "ERNIE 4.0", | |
| 15 | + "model": "ERNIE 4.0", | |
| 15 | 16 | "platform": "yiyan", |
| 16 | - "imageUrl": "", | |
| 17 | - "sort": 100, | |
| 18 | - "config": { | |
| 19 | - "topK": 0.6, | |
| 20 | - "topP": 0.6, | |
| 21 | - "temperature": 0.86, | |
| 22 | - "maxTokens": 2048 | |
| 23 | - } | |
| 17 | + "sort": 100 | |
| 24 | 18 | } |
| 25 | 19 | |
| 26 | 20 | ### chat call |
| 27 | -POST {{baseUrl}}/ai/chat/modal/7 | |
| 21 | +POST {{baseUrl}}/admin-api/ai/chat/model/update | |
| 28 | 22 | Content-Type: application/json |
| 29 | 23 | Authorization: {{token}} |
| 30 | 24 | |
| 31 | 25 | { |
| 32 | - "name": "小红书Ai写作大模型-plus", | |
| 33 | - "modal": "ERNIE-3.5-8K", | |
| 26 | + "id": 9, | |
| 27 | + "keyId": "1", | |
| 28 | + "name": "小红书Ai写作大模型3.5 8k", | |
| 29 | + "model": "ERNIE-3.5-8K", | |
| 34 | 30 | "platform": "yiyan", |
| 35 | - "imageUrl": "", | |
| 36 | - "sort": 1, | |
| 37 | - "config": { | |
| 38 | - "topK": 0.6, | |
| 39 | - "topP": 0.6, | |
| 40 | - "temperature": 0.86, | |
| 41 | - "maxTokens": 2048 | |
| 42 | - } | |
| 31 | + "sort": 100 | |
| 43 | 32 | } | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-role.http
| 1 | 1 | |
| 2 | 2 | ### chat角色 - list |
| 3 | -GET {{baseUrl}}/ai/chat/role/list?pageNo=1&pageSize=20&search= | |
| 3 | +GET {{baseUrl}}/admin-api/ai/chat/role/list?pageNo=1&pageSize=20&search= | |
| 4 | 4 | Authorization: {{token}} |
| 5 | 5 | |
| 6 | - | |
| 7 | 6 | ### chat add |
| 8 | -PUT {{baseUrl}}/ai/chat/role | |
| 7 | +PUT {{baseUrl}}/admin-api/ai/chat/role/add | |
| 9 | 8 | Content-Type: application/json |
| 10 | 9 | Authorization: {{token}} |
| 11 | 10 | |
| 12 | 11 | { |
| 13 | - "modelId": 1, | |
| 12 | + "modelId": 9, | |
| 14 | 13 | "name": "小红书写作v1", |
| 15 | - "introduce": "采用gpt3.5模型,拥有小红书优质作者写作经验。", | |
| 16 | - "classify": "writing", | |
| 17 | - "enable": "open" | |
| 14 | + "avatar": "http://baidu.com", | |
| 15 | + "category": "writing", | |
| 16 | + "description": "采用gpt3.5模型,拥有小红书优质作者写作经验。", | |
| 17 | + "welcomeMessage": "欢迎使用小红书写作模型!", | |
| 18 | + "systemMessage": "你是一名优秀的小红书人文、风光作者,你热爱旅游,每去往一个城市你都会用美妙的文字抒写着这座城市的大街小巷,描述着这座城市的美好。", | |
| 19 | + "publicStatus": 0, | |
| 20 | + "sort": 0 | |
| 18 | 21 | } |
| 19 | 22 | |
| 20 | 23 | |
| 21 | 24 | ### chat update |
| 22 | -POST {{baseUrl}}/ai/chat/role/7 | |
| 25 | +POST {{baseUrl}}/admin-api/ai/chat/role/update | |
| 23 | 26 | Content-Type: application/json |
| 24 | 27 | Authorization: {{token}} |
| 25 | 28 | |
| 26 | 29 | { |
| 27 | - "modelId": 1, | |
| 28 | - "name": "小红书写作v1---hh😄❀", | |
| 29 | - "introduce": "采用gpt3.5模型,拥有小红书优质作者写作经验。0----", | |
| 30 | - "classify": "writing", | |
| 31 | - "enable": "close" | |
| 30 | + "id": 8, | |
| 31 | + "modelId": 9, | |
| 32 | + "name": "小红书写作v2", | |
| 33 | + "avatar": "http://baidu.com", | |
| 34 | + "category": "writing", | |
| 35 | + "description": "采用gpt3.5模型,拥有小红书优质作者写作经验。", | |
| 36 | + "welcomeMessage": "欢迎使用小红书写作模型!", | |
| 37 | + "systemMessage": "你是一名优秀的小红书人文、风光作者,你热爱旅游,每去往一个城市你都会用美妙的文字抒写着这座城市的大街小巷,描述着这座城市的美好。", | |
| 38 | + "publicStatus": 0, | |
| 39 | + "sort": 0, | |
| 40 | + "status": 0 | |
| 32 | 41 | } |
| 33 | 42 | |
| 34 | 43 | ### chat update |
| 35 | -POST {{baseUrl}}/ai/chat/role/6/update-visibility | |
| 44 | +POST {{baseUrl}}/admin-api/ai/chat/role/update-public-status | |
| 36 | 45 | Content-Type: application/json |
| 37 | 46 | Authorization: {{token}} |
| 38 | 47 | |
| 39 | 48 | { |
| 40 | - "enable": "open" | |
| 49 | + "id": "8", | |
| 50 | + "publicStatus": true | |
| 41 | 51 | } |
| 42 | 52 | |
| 43 | 53 | |
| 44 | - | |
| 45 | 54 | ### chat update |
| 46 | -DELETE {{baseUrl}}/ai/chat/role/1 | |
| 47 | -Content-Type: application/json | |
| 55 | +DELETE {{baseUrl}}/admin-api/ai/chat/role/delete?id=8 | |
| 48 | 56 | Authorization: {{token}} |
| 49 | 57 | |
| 50 | 58 | ... | ... |