refac: stream chunk max buffer size

This commit is contained in:
Timothy Jaeryang Baek
2025-11-09 21:16:34 -05:00
parent 6cb41a59da
commit e76f77bcb7
3 changed files with 14 additions and 12 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ from open_webui.utils.payload import (
)
from open_webui.utils.misc import (
convert_logit_bias_input_to_json,
handle_large_stream_chunks,
stream_chunks_handler,
)
from open_webui.utils.auth import get_admin_user, get_verified_user
@@ -953,7 +953,7 @@ async def generate_chat_completion(
if "text/event-stream" in r.headers.get("Content-Type", ""):
streaming = True
return StreamingResponse(
handle_large_stream_chunks(r.content),
stream_chunks_handler(r.content),
status_code=r.status,
headers=dict(r.headers),
background=BackgroundTask(