Learn how to use Helicone’s Manual Logger to track streaming LLM responses
@helicone/helpers
package to log streaming responses from various LLM providers.
@helicone/helpers
package:
logBuilder
method provides better error handling and simplified stream management:
logBuilder
approach offers several advantages:
setError
methodtoReadableStream
sendLog
after
Functionafter
function to log requests without blocking the response:
logStream
, logSingleStream
, and logBuilder
methods automatically track the time to first token, which is a valuable metric for understanding LLM response latency: