Skip to content
New issue

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

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

Already on GitHub? # to your account

Increase JSON to stream chunk content size #962

Closed
VisargD opened this issue Feb 25, 2025 · 0 comments · Fixed by #961
Closed

Increase JSON to stream chunk content size #962

VisargD opened this issue Feb 25, 2025 · 0 comments · Fixed by #961
Assignees
Labels

Comments

@VisargD
Copy link
Collaborator

VisargD commented Feb 25, 2025

Currently, Gateway tries to mimic OpenAI streaming behaviour and break the JSON into 4 characters (1 token) and return them individually to the client.

But this approach is redundant because the Gateway already has the full JSON response. So this just adds up to more chunks. Due to this, latency increases and it might also cause network bottlenecks due to unreasonable number of chunks.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant