Zero latency when using .end()
Anything missing in my code which causes setting the completion time for "chat-copmletion" generations to -0.00s?
8 Replies
This looks off. I will look into this today.
which JS SDK version are you using? I just tested it on my machine and it seems to work fine
I'm using the latest JS SDK version (
2.0.1
).
When looking in Chrome DevTools when loading the Langfuse web app, I'm seeing that the startTime
and endTime
are equal:
Very weird. But at the moment I think it's somehow a bug in my code because it only happens with the "chat-completion" generations. The previous generation works fine 🤔The first ts ends with 525, the second with 521. So they are different, but starttime is older than endtime.
From the example above, did you run into a retry state?
Yes, I run into a return statement. The total time of the trace (35s) looks good
Found a reproducable code sample: https://github.com/langfuse/langfuse/issues/779
Not sure if I'm using
trace.generation()
after generation.end()
is allowed.GitHub
bug: generation time is 0s when using
trace.generation
after call...Describe the bug You can in this screenshot that the time for the "usage-playground" generation is -0.00s. This happens, when you call trace.generation() after calling generation.end(). T...