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,