Skip to content

fix(perplexity): preserve caller extra_body - #39203

Merged
ccurme (ccurme) merged 1 commit into
masterfrom
ccurme/perplexity/copy-extra-body
Aug 2, 2026
Merged

fix(perplexity): preserve caller extra_body#39203
ccurme (ccurme) merged 1 commit into
masterfrom
ccurme/perplexity/copy-extra-body

Conversation

@ccurme

Copy link
Copy Markdown
Collaborator

Closes #38840


ChatPerplexity could mutate caller-owned extra_body while routing Responses API parameters, leaking per-call options into later requests. Copying dictionary passthrough values keeps payload construction isolated.

Made by Open SWE

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
@github-actions github-actions Bot added fix For PRs that implement a fix integration PR made that is related to a provider partner package integration internal perplexity `langchain-perplexity` package issues & PRs size: XS < 50 LOC labels Aug 2, 2026
@ccurme
ccurme (ccurme) marked this pull request as ready for review August 2, 2026 20:51

@open-swe open-swe Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Open SWE Review: No issues found

Open SWE reviewed this PR and found no potential bugs to report.

Open in WebView Open SWE trace

@ccurme
ccurme (ccurme) merged commit cec553a into master Aug 2, 2026
30 checks passed
@ccurme
ccurme (ccurme) deleted the ccurme/perplexity/copy-extra-body branch August 2, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix For PRs that implement a fix integration PR made that is related to a provider partner package integration internal perplexity `langchain-perplexity` package issues & PRs size: XS < 50 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ChatPerplexity Responses route mutates the caller's extra_body dict in place — per-call params leak into the instance and all later requests

1 participant