Repository navigation
feat: add request codecs to manual LLM calls - #1441
Merged
willkill07 merged 3 commits intoOct 21, 2026
Merged
Conversation
Signed-off-by: Will Killian <[email protected]>
Contributor
Signed-off-by: Will Killian <[email protected]>
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.
Overview
Add request codecs to manual Python and Node.js LLM calls so telemetry sanitizers can use the same request-codec support as Rust. Codecs sanitize and annotate the telemetry copy without changing the caller's request.
Details
codeckeyword to Python'sllm.call(), including its native binding, type stub, and docstrings.codecDecodeandcodecEncodecallbacks to Node.js'sllmCall(). Require both callbacks together and preserve existing argument positions.Validation:
just test-python: 83 native tests, 1,045 Python tests, and 24 plugin-example tests passed.just test-node: 5 native tests, 503 JavaScript tests, and 26 plugin-example tests passed.just docs-linkcheck: passed. Fern skipped the published-redirect comparison because its service returned HTTP 403.These additions are optional and preserve existing calls.
Where should the reviewer start?
Start with
python/nemo_relay/llm.pyandcrates/node/src/api/mod.rsfor the public APIs. Then review the manual-request-codec cases inpython/tests/test_llm.pyandcrates/node/tests/llm_tests.mjsfor the behavior they preserve.Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit
New Features
Documentation
Tests