Skip to content

Conversation

@ngxson
Copy link
Collaborator

@ngxson ngxson commented Dec 8, 2024

After the refactoring, stream: true only uses _partial result which miss some info about the generation params.

This PR brings back the old behavior by allowing both _partial and _final to be sent during stream completion.

Supersede #10720 @z80maniac

@ngxson ngxson requested a review from ggerganov December 8, 2024 16:26
@github-actions github-actions bot added examples python python script changes server labels Dec 8, 2024
@ngxson ngxson changed the title server : bring back into to final chunk in stream mode server : bring back info of final chunk in stream mode Dec 8, 2024
@ngxson ngxson merged commit e52522b into ggml-org:master Dec 8, 2024
49 checks passed
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Dec 20, 2024
* server : bring back into to final chunk in stream mode

* clarify a bit

* traling space
tinglou pushed a commit to tinglou/llama.cpp that referenced this pull request Feb 13, 2025
* server : bring back into to final chunk in stream mode

* clarify a bit

* traling space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

examples python python script changes server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants