Back

langchain #35027

fix(openai): preserve reasoning_content for DeepSeek models

by jackjin1997 · Feb 06, 2026 at 19:28 UTC · scan-32be88046719079e

Low Risk (20%)

Get this automatically on every PR

Install the Axiomo GitHub App to get Signals as check runs and PR comments on every pull request.

Install App

Risk Assessment

Risk level: Low (20%)

Risk Drivers

  • api_surface_change: API surface changed in 2 file(s)

Intent

2/4 criteria met

Preserve reasoning_content for DeepSeek models in ChatOpenAI.

Acceptance Criteria

  • reasoning_content is extracted for standard responses

    openai/langchain_openai/chat_models/base.py line +8 adds logic for reasoning_content

  • ?
    reasoning_content is extracted for streaming responses

    No explicit streaming response handling found

  • ?
    Issue #35006 is resolved

    No direct reference to the issue being tested

  • Unit tests cover new functionality

    test_chat_models.py adds 139 new test lines

Confidence: 90.0% Source: pr description AI: openai

Contributors

jackjin1997 PR Author 4 commits ? Low Trust
Account Age: 3208 days
Prior PRs: 7
Merged: 1

Has 1 merged PRs to this repo. maintains 64 public repositories. unfamiliar with 4 files being modified.

Evidence

Evidence Completeness: 70.0%
ci_passing Passing
tests_passing Unavailable
lint_passing Passing
build_successful Passing
Missing: security_scan_clean, coverage_maintained

Supply Chain

None Risk
Modifies dependencies
Modifies lockfile
Modifies CI config
Modifies build scripts

Focus Files

Review 2 high-priority file(s)

reproduce_34920.py +54

54 lines changed; New file; Source code

high
libs/partners/anthropic/tests/unit_tests/test_chat_models.py +139

139 lines changed; Source code

high
libs/partners/anthropic/langchain_anthropic/chat_models.py +34

Source code

medium
libs/partners/openai/langchain_openai/chat_models/base.py +6

Source code

medium

Triage

36

minutes to review

medium

effort level

none

staleness risk

Standard review process

Recommendation

COMMENT 67.0% readiness

Some concerns to address before approval

Next Steps

Question

Why is security_scan_clean missing? Consider adding this check.

Question

Why is coverage_maintained missing? Consider adding this check.

Concern reproduce_34920.py

New file in high-priority area: 54 lines changed; New file; Source code