-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BugFix] Fix and simplify completion API usage streaming
Similar to what was done for the chat API in #9357. Ensure that the final chunk with usage data contains aggregate counts across all choices. Also simplify some of the prompt-handling logic in the API implementation.
- Loading branch information
Showing
1 changed file
with
61 additions
and
62 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