-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Refine OpenAI serving entrypoint to remove batch requests #7372
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
Merged
zhyncs
merged 18 commits into
sgl-project:main
from
JustinTong0323:refactor_openai_serving_remove_batch
Jun 20, 2025
Merged
Changes from 3 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b297dfc
Refactors OpenAI serving entrypoint, remove batch requests and unused…
JustinTong0323 2a0a405
Merge branch 'main' into refactor_openai_serving_remove_batch
JustinTong0323 cead9a3
Matches OpenAI streaming usage behavior
JustinTong0323 6236f14
Reorders stream chunks for OpenAI API compatibility
JustinTong0323 f2ec559
Fixes tool call ID handling for streaming
JustinTong0323 c2281b7
Removes unnecessary code branches
JustinTong0323 4259dc8
Update python/sglang/srt/entrypoints/openai/serving_embedding.py
JustinTong0323 e5a0163
fix
JustinTong0323 d94948e
Updates stream buffer logic
JustinTong0323 53cf629
Removes request_id from internal request conversion
JustinTong0323 0a48423
Merge branch 'main' into refactor_openai_serving_remove_batch
JustinTong0323 f812fe5
remove rid in tests
JustinTong0323 60f11bd
Merge branch 'main' into refactor_openai_serving_remove_batch
JustinTong0323 a84f67f
fix bad merge
JustinTong0323 cf81049
Fixes streaming chat completion for multiple requests
JustinTong0323 52534c6
Merge branch 'main' into refactor_openai_serving_remove_batch
JustinTong0323 512baa8
fix: Handles multiple streams in completion endpoint
JustinTong0323 4ae75a2
fix: Initialize content in DeltaMessage for assistant role
JustinTong0323 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.