diff --git a/posthog/api/query.py b/posthog/api/query.py index beb1415b8dc38..00d4548eeae37 100644 --- a/posthog/api/query.py +++ b/posthog/api/query.py @@ -206,7 +206,9 @@ def generate(): {"prompt": human_message.content, "response": last_message}, ) - return StreamingHttpResponse(generate(), content_type=ServerSentEventRenderer.media_type) + return StreamingHttpResponse( + generate(), content_type=ServerSentEventRenderer.media_type, headers={"X-Accel-Buffering": "no"} + ) def handle_column_ch_error(self, error): if getattr(error, "message", None):