Send value as a float to ai_response_time event
This change fixes a potential issue with tracking AI response time. Instead of directly using the duration
value, the code now ensures it's converted to a floating-point number using parseFloat()
, with a fallback to 0 if the conversion fails. This prevents potential errors that could occur if duration
was in an unexpected format or couldn't be properly interpreted as a number.
Edited by Niko Belokolodov
Merge request reports
Activity
Please register or sign in to reply