-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve stream parsing and error handling
Enhance the stream parsing logic by better handling finish_reason and error conditions. Changes include: - Add finish_reason check to properly close streams - Improve data prefix trimming in stream messages - Pass job context to parse_line for better error handling - Add debug logging for stream completion
- Loading branch information
Showing
1 changed file
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters