File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ def _capture_streaming_event(
193193 "$ai_latency" : latency ,
194194 "$ai_trace_id" : posthog_trace_id ,
195195 "$ai_base_url" : str (self ._client .base_url ),
196- ** posthog_properties ,
196+ ** ( posthog_properties or {}) ,
197197 }
198198
199199 if tool_calls :
@@ -266,7 +266,7 @@ def create(
266266 "$ai_latency" : latency ,
267267 "$ai_trace_id" : posthog_trace_id ,
268268 "$ai_base_url" : str (self ._client .base_url ),
269- ** posthog_properties ,
269+ ** ( posthog_properties or {}) ,
270270 }
271271
272272 if posthog_distinct_id is None :
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ async def _capture_streaming_event(
191191 "$ai_latency" : latency ,
192192 "$ai_trace_id" : posthog_trace_id ,
193193 "$ai_base_url" : str (self ._client .base_url ),
194- ** posthog_properties ,
194+ ** ( posthog_properties or {}) ,
195195 }
196196
197197 if tool_calls :
@@ -266,7 +266,7 @@ async def create(
266266 "$ai_latency" : latency ,
267267 "$ai_trace_id" : posthog_trace_id ,
268268 "$ai_base_url" : str (self ._client .base_url ),
269- ** posthog_properties ,
269+ ** ( posthog_properties or {}) ,
270270 }
271271
272272 if posthog_distinct_id is None :
You can’t perform that action at this time.
0 commit comments