-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Refactor and modularize stream handling functions
Refactor stream handling logic by introducing new helper functions. This change improves readability and maintainability of the code by encapsulating repetitive logic in dedicated functions like `process_chunk`, `handle_context_window_error`, and `process_finish_reason`.
- Loading branch information
1 parent
079a34f
commit 8f61810
Showing
1 changed file
with
65 additions
and
51 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