You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(decorators): add performance measurement for streaming functions
This commit introduces a decorator `measure_stream_performance` that tracks and prints performance metrics for streaming functions. It measures time to the first character, total execution time, and calculates output rates for characters and tokens. Additionally, the `run_llm_stream` function now includes detailed documentation about its parameters and return type. These enhancements aim to facilitate better performance monitoring and debugging for developers working with streaming outputs in language models.
0 commit comments