From 6c7c0fff9815a4511e34c290fa2019dd0e820efa Mon Sep 17 00:00:00 2001 From: Frank Ong Date: Sun, 6 Apr 2025 12:28:47 -0700 Subject: [PATCH] Fix Open AI await response --- posthog/ai/openai/openai_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/ai/openai/openai_async.py b/posthog/ai/openai/openai_async.py index e12cd825..491a7539 100644 --- a/posthog/ai/openai/openai_async.py +++ b/posthog/ai/openai/openai_async.py @@ -186,7 +186,7 @@ async def _capture_streaming_event( event_properties["$process_person_profile"] = False if hasattr(self._client._ph_client, "capture"): - await self._client._ph_client.capture( + self._client._ph_client.capture( distinct_id=posthog_distinct_id or posthog_trace_id, event="$ai_generation", properties=event_properties,