Repository navigation
fix(model-server): preserve aliases in ORJSON responses - #3047
Merged
ananthsub merged 1 commit intoSep 28, 2026
Merged
Conversation
5 tasks
ananthsub
force-pushed
the
ananthsub/fix-orjson-response-aliases
branch
from
September 4, 2026 18:28
555df4a to
0e56c2a
Compare
ananthsub
force-pushed
the
ananthsub/fix-orjson-response-aliases
branch
from
September 4, 2026 19:05
0e56c2a to
03a008f
Compare
Contributor
Author
|
/ok to test 03a008f |
ananthsub
force-pushed
the
ananthsub/fix-orjson-response-aliases
branch
from
September 8, 2026 13:02
03a008f to
2e4dcba
Compare
Contributor
Author
|
/ok to test 2e4dcba |
This was referenced Sep 8, 2026
Keep FastAPI-compatible wire names when the non-streaming response fast path serializes Pydantic models. Signed-off-by: Ananth Subramaniam <[email protected]>
ananthsub
force-pushed
the
ananthsub/fix-orjson-response-aliases
branch
from
September 28, 2026 17:37
2e4dcba to
b6499f5
Compare
Contributor
|
/ok to test b6499f5 |
yuhezhang-ai
approved these changes
Sep 28, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/36491624867 |
This branch was previously deployed
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.
Summary
text.format.schemawire contract used by structured-output requestsNeMoGymResponseschemaPerformance
A local in-process benchmark alternated the previous and corrected
model_dumpcalls beforeorjson.dumps, with 100 warmups and nine repeats. The corrected path was unchanged for a 1.2 KB response (6.560 vs 6.556 microseconds per operation) and 1.77% slower for a synthetic 71.8 KB response (30.669 vs 31.211 microseconds). The change affects key selection during the existing dump and does not add another traversal.Test plan
uv run --extra dev pytest -q tests/unit_tests/test_base_responses_api_model.pyCloses #3041.
Parent roadmap: #2998.