feat:修复投顾agent功能

This commit is contained in:
2026-09-14 21:41:40 +08:00
parent fc1d74570f
commit 058f45115d
14 changed files with 142 additions and 33 deletions
+1 -4
View File
@@ -72,10 +72,7 @@ export const assistantApi = {
sessionHistory: (sessionId: string) =>
apiFetch<AgentMessage[]>(`/advisor-agent/session/${encodeURIComponent(sessionId)}/history`),
/**
* POST /chat/stream —— 响应是 text/event-stream,但后端整包输出,
* 因此读完整条响应后一次性返回聚合结果(非流式渲染)。
*/
/** POST /chat/stream —— 读取 SSE,并支持调用方实时消费事件。 */
chatOnce(
body: {
query: string;