Files
msh-system/msh_single_uniapp/api
msh-agent 58ea76498f fix(streaming): 修正流式输出的端点URL和防缓冲header
前端:
- kieaiGeminiChatStream URL 从 /gemini/chat 改为 /gemini/chat/stream
  (后者声明了 produces=text/event-stream,nginx 不会缓冲)
- 请求 header 增加 Accept: text/event-stream

后端:
- KieAIController.geminiChatStream 补充防缓冲 header:
  X-Accel-Buffering: no + Cache-Control: no-cache
  (与 CozeController.chatStream 对齐,防止 nginx 缓冲 SSE)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-11 15:51:32 +08:00
..
2026-03-09 18:56:53 +08:00