Repository navigation
Conversation
Twiink
temporarily deployed
to
github-app-auth
November 22, 2026 06:27 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change that isolates per-call NVIDIA embedding settings.
No open issues 🎉
What changed in this PR
This PR prevents per-call NVIDIA embedding overrides from mutating reusable execution settings, keeping query and document requests isolated.
Changes:
- Deep-copy settings before applying model defaults, overrides, and NVIDIA request fields.
- Add an offline regression test that checks outgoing input types are
querythenpassageand confirms the original settings remain unchanged.
| File | Description |
|---|---|
python/tests/unit/connectors/ai/nvidia/services/test_nvidia_text_embedding.py |
Adds request-level regression coverage using an offline HTTP transport. |
python/semantic_kernel/connectors/ai/nvidia/services/nvidia_text_embedding.py |
Deep-copies execution settings to isolate per-call mutations. |
Review effort: Balanced
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.
Motivation and Context
A per-call
input_type="query"override on NVIDIA embeddings mutates a reusableinput_type="passage"settings object and its nested extra body. The next document embedding request is consequently sent as a query. Copy settings before adding model defaults, overrides, and NVIDIA extra-body fields.Description
The regression makes two requests through a real
AsyncOpenAIclient with an offline HTTP transport, checks the outgoing input types arequerythenpassage, and verifies the supplied settings remain unchanged.Contribution Checklist
Validation: the unchanged source sends
querytwice; all 37 NVIDIA connector tests and Ruff lint/format checks pass after the fix. No live provider call was made.Prepared with AI assistance and verified locally.