feat: Add HTTP request body size limit to OpenAI frontend - #8787
Merged
pskiran1 merged 16 commits intoMay 29, 2026
Merged
Conversation
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…s-a-single-64-mib-json' of https://github.com/triton-inference-server/server into spolisetty/tri-1015-psirt-triton-openai-frontend-accepts-a-single-64-mib-json
…tend-accepts-a-single-64-mib-json
yinggeh
reviewed
May 19, 2026
Co-authored-by: Yingge He <157551214+yinggeh@users.noreply.github.com>
…tend-accepts-a-single-64-mib-json
yinggeh
reviewed
May 20, 2026
Contributor
|
Should be |
yinggeh
reviewed
May 20, 2026
yinggeh
reviewed
May 20, 2026
yinggeh
reviewed
May 20, 2026
yinggeh
reviewed
May 20, 2026
yinggeh
reviewed
May 20, 2026
…tend-accepts-a-single-64-mib-json
yinggeh
reviewed
May 21, 2026
whoisj
reviewed
May 21, 2026
…tend-accepts-a-single-64-mib-json
…s-a-single-64-mib-json' of https://github.com/triton-inference-server/server into spolisetty/tri-1015-psirt-triton-openai-frontend-accepts-a-single-64-mib-json
…tend-accepts-a-single-64-mib-json
yinggeh
approved these changes
May 29, 2026
pskiran1
deleted the
spolisetty/tri-1015-psirt-triton-openai-frontend-accepts-a-single-64-mib-json
branch
May 29, 2026 10:33
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 does the PR do?
Adds an HTTP request body size limit to the Triton OpenAI frontend to reject oversized requests before JSON parsing. The PR introduces a FastAPI/ASGI middleware that:
Content-Lengthexceeds the configured limit.413 content_too_large.Content-Lengthheaders with HTTP400 invalid_content_length.The default limit is
67108864bytes / 64 MiB, and it can be configured with the new--http-max-input-sizeCLI option.Checklist
<commit_type>: <Title>Commit Type:
Check the conventional commit type
box here and add the label to the github PR.
Related PRs:
Where should the reviewer start?
Test plan:
Caveats:
Background
Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)