Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: append DONE message to chat stream #2221

Merged
merged 2 commits into from
Jul 11, 2024
Merged

Conversation

drbh
Copy link
Collaborator

@drbh drbh commented Jul 11, 2024

This PR adds the missing [DONE] message to the end of the /v1/completions and /v1/chat/completions endpoints.

This should resolve: #1896 and align with the openai spec https://platform.openai.com/docs/api-reference/chat/create#chat-create-stream

Copy link
Member

@OlivierDehaene OlivierDehaene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@drbh drbh merged commit d789de3 into main Jul 11, 2024
7 checks passed
@drbh drbh deleted the fix-end-chat-stream-correctly branch July 11, 2024 14:43
ErikKaum pushed a commit that referenced this pull request Jul 26, 2024
* fix: append DONE message to chat stream

* fix: update completions endpoint
yuanwu2017 pushed a commit to yuanwu2017/tgi-gaudi that referenced this pull request Sep 26, 2024
* fix: append DONE message to chat stream

* fix: update completions endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HF web service streaming response differs from OpenAI, breaking clients
2 participants