stream=false(默认):HTTP 一次性返回 {chat_id, complete_response, message_id}stream=true:返回 SSE 流,事件类型 status / message_id / token / done / errorchat_id 不传则自动创建新对话。file_list 最多 10 个 file_key。Authorization: Bearer ********************{
"chat_id": 123,
"query": "请帮我总结这份文档",
"file_list": [
"fk_xxx"
],
"ws_agent_key": "agent_xxx",
"stream": false
}curl --location 'https://app.emooai.com/open-api/v1/chat/messages' \
--header 'Emoo-User-Id: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"chat_id": 123,
"query": "请帮我总结这份文档",
"file_list": [
"fk_xxx"
],
"ws_agent_key": "agent_xxx",
"stream": false
}'{
"code": 200,
"message": "success",
"data": {
"chat_id": 123,
"complete_response": "AI 回答内容",
"message_id": 456
}
}