perf(agent): smooth SSE streaming updates

This commit is contained in:
jxxghp
2026-08-07 12:42:57 +08:00
parent 4814f53c4e
commit 0eb81b4ecb
10 changed files with 408 additions and 55 deletions
+3 -2
View File
@@ -65,13 +65,14 @@ http {
root html;
}
location ~ ^/api/v1/(system/(message|progress/|logging)|search/.*/stream$) {
location ~ ^/api/v1/(system/(message|progress/|logging)|search/.*/stream$|message/agent/stream$) {
# SSE MIME类型设置
default_type text/event-stream;
# 禁用缓存
add_header Cache-Control no-cache;
add_header Cache-Control "no-cache, no-transform";
add_header X-Accel-Buffering no;
gzip off;
proxy_buffering off;
proxy_cache off;