Repository navigation
Conversation
Contributor
Author
|
Merged The rebuilt CPU |
Collaborator
|
Closing as part of clearing this pre-hygiene queue; see #298 (comment) for the note on the updated review process. Thank you again. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
response.output_text.donecarries the finalized text, but itslogprobscurrently contains only entries left in the pending queue. Usually the queue has already been drained into deltas, so the done event reports an empty list while the final content part has the token probabilities.Finalize pending probabilities into the content part before emitting the done event, and include the complete list there. This keeps the finalized text event and finalized content part consistent for clients that consume completion events.
Area
edge0-infer/)How was it tested?
Built and ran
tests/unit/cli/serve_protocol_test.cppwithtools/cli/serve_protocol.cppusing GCC 14/C++17 and the existing portal request fixtures. The new assertion fails on the base encoder; all protocol tests pass after the change. Both fully emitted and trailing pending probabilities are covered, with exact equality to the finalized content part.No model or HTTP server is needed for these tests.
Checklist