@@ -127,7 +127,9 @@ def call_llm_and_track_usage(
127127 "$ai_model" : kwargs .get ("model" ),
128128 "$ai_model_parameters" : get_model_params (kwargs ),
129129 "$ai_input" : with_privacy_mode (ph_client , posthog_privacy_mode , kwargs .get ("messages" )),
130- "$ai_output_choices" : with_privacy_mode (ph_client , posthog_privacy_mode , format_response (response , provider )),
130+ "$ai_output_choices" : with_privacy_mode (
131+ ph_client , posthog_privacy_mode , format_response (response , provider )
132+ ),
131133 "$ai_http_status" : http_status ,
132134 "$ai_input_tokens" : usage .get ("input_tokens" , 0 ),
133135 "$ai_output_tokens" : usage .get ("output_tokens" , 0 ),
@@ -193,7 +195,9 @@ async def call_llm_and_track_usage_async(
193195 "$ai_model" : kwargs .get ("model" ),
194196 "$ai_model_parameters" : get_model_params (kwargs ),
195197 "$ai_input" : with_privacy_mode (ph_client , posthog_privacy_mode , kwargs .get ("messages" )),
196- "$ai_output_choices" : with_privacy_mode (ph_client , posthog_privacy_mode , format_response (response , provider )),
198+ "$ai_output_choices" : with_privacy_mode (
199+ ph_client , posthog_privacy_mode , format_response (response , provider )
200+ ),
197201 "$ai_http_status" : http_status ,
198202 "$ai_input_tokens" : usage .get ("input_tokens" , 0 ),
199203 "$ai_output_tokens" : usage .get ("output_tokens" , 0 ),
0 commit comments