feat: 对接了会话的接口与会话交互
This commit is contained in:
19
request/api/AgentChatApi.js
Normal file
19
request/api/AgentChatApi.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import request from "../base/request";
|
||||
|
||||
function getAgentChatMessage() {
|
||||
const args = {
|
||||
"conversationId":"1931957498711957505",
|
||||
"agentId":"1",
|
||||
"messageType": 0,
|
||||
"messageContent":"酒店一共有哪些温泉?"
|
||||
}
|
||||
const defaultConfig = {
|
||||
header: {
|
||||
Accept: 'text/event-stream',
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
};
|
||||
return request.post('/agent/assistant/chat', args, defaultConfig);
|
||||
}
|
||||
|
||||
export { getAgentChatMessage }
|
||||
Reference in New Issue
Block a user