Skip to content

[deps] Update dependency @langchain/openai to v1#12886

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/langchain-openai-1.x
Open

[deps] Update dependency @langchain/openai to v1#12886
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/langchain-openai-1.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 22, 2025

This PR contains the following updates:

Package Change Age Confidence
@langchain/openai (source) 0.5.51.2.12 age confidence

Release Notes

langchain-ai/langchainjs (@​langchain/openai)

v1.2.12

Compare Source

Patch Changes

v1.2.11

Compare Source

Patch Changes
  • #​10106 9f30267 Thanks @​hntrl! - Add package version metadata to runnable traces. Each package now stamps its version in this.metadata.versions at construction time, making version info available in LangSmith trace metadata.

  • #​10151 f298a9b Thanks @​hntrl! - Bump openai SDK to ^6.24.0, fix ChatCompletionTool type narrowing for new union type, add file input converter tests for newly supported document types (docx, pptx, xlsx, csv)

  • Updated dependencies [9f30267, 403a99f, 3b1fd54, 77bd982]:

v1.2.10

Patch Changes
  • #​10143 62ba83e Thanks @​topliceanurazvan! - fix(openai): emit handleLLMNewToken callback for usage chunk in Completions API streaming

    The final usage chunk in _streamResponseChunks was only yielded via the async generator but did not call runManager.handleLLMNewToken(). This meant callback-based consumers (e.g. LangGraph's StreamMessagesHandler) never received the usage_metadata chunk. Added the missing handleLLMNewToken call to match the behavior of the main streaming loop.

  • Updated dependencies [10a876c, b46d96a]:

v1.2.8

Compare Source

Patch Changes
  • #​10077 05396f7 Thanks @​christian-bromann! - feat(core): add ContextOverflowError, raise in anthropic and openai

  • #​10081 5a6f26b Thanks @​hntrl! - feat(core): add namespace-based symbol branding for error class hierarchies

    Introduces createNamespace utility for hierarchical symbol-based branding of class hierarchies.
    All LangChain error classes now use this pattern, replacing hand-rolled duck-type isInstance checks
    with reliable cross-realm Symbol.for-based identity.

    • New LangChainError base class that all LangChain errors extend
    • New createNamespace / Namespace API in @langchain/core/utils/namespace
    • Refactored ModelAbortError, ContextOverflowError to use namespace branding
    • Added ContextOverflowError.fromError() static factory method
    • Deprecated addLangChainErrorFields in favor of LangChainError subclasses
    • Migrated Google provider errors (GoogleError, ConfigurationError, etc.) to namespace branding
    • Updated Anthropic and OpenAI providers to use ContextOverflowError.fromError()
  • #​10078 7be50a7 Thanks @​christian-bromann! - chore(*): update model profiles

v1.2.7

Patch Changes

v1.2.6

Patch Changes

v1.2.5

Compare Source

Patch Changes

v1.2.4

Compare Source

Patch Changes
  • #​9887 1fa865b Thanks @​Muhammad-Kamran-Khan! - Fix validation to allow file_url and file_id without filename metadata in Responses API, and prevent sending filename when not allowed.

  • #​9873 28efb57 Thanks @​hntrl! - Add reasoningEffort call option as a convenience shorthand for reasoning.effort

    • Adds reasoningEffort to BaseChatOpenAICallOptions for easier configuration of reasoning models
    • Automatically coalesces reasoningEffort into reasoning.effort when calling reasoning models (o1, o3, etc.)
    • If both reasoningEffort and reasoning.effort are provided, reasoning.effort takes precedence
    • Marked as @deprecated to encourage use of the full reasoning.effort option
  • #​9876 4e42452 Thanks @​sflanker! - fix(openai): pass runManager to responses._generate function in ChatOpenAI

  • #​9900 a9b5059 Thanks @​hntrl! - Improved abort signal handling for chat models:

    • Added ModelAbortError class in @langchain/core/errors that contains partial output when a model invocation is aborted mid-stream
    • invoke() now throws ModelAbortError with accumulated partialOutput when aborted during streaming (when using streaming callback handlers)
    • stream() throws a regular AbortError when aborted (since chunks are already yielded to the caller)
    • All provider implementations now properly check and propagate abort signals in both _generate() and _streamResponseChunks() methods
    • Added standard tests for abort signal behavior
  • #​9900 a9b5059 Thanks @​hntrl! - fix(providers): add proper abort signal handling for invoke and stream operations

    • Added early abort check (signal.throwIfAborted()) at the start of _generate methods to immediately throw when signal is already aborted
    • Added abort signal checks inside streaming loops in _streamResponseChunks to return early when signal is aborted
    • Propagated abort signals to underlying SDK calls where applicable (Google GenAI, Google Common/VertexAI, Cohere)
    • Added standard tests for abort signal behavior in @langchain/standard-tests

    This enables proper cancellation behavior for both invoke and streaming operations, and allows fallback chains to correctly proceed to the next runnable when the previous one is aborted.

v1.2.3

Compare Source

Patch Changes

v1.2.2

Compare Source

Patch Changes

v1.2.1

Compare Source

Patch Changes

v1.2.0

Minor Changes
Patch Changes

v1.1.3

Patch Changes

v1.1.2

Patch Changes

v1.1.1

Patch Changes

v1.1.0

Minor Changes
Patch Changes

v0.6.16

Compare Source

v0.6.15

Compare Source

v0.6.14

Compare Source

v0.6.13

Compare Source

v0.6.12

Compare Source

v0.6.11

Compare Source

v0.6.10

Compare Source

v0.6.9

Compare Source

v0.6.8

Compare Source

v0.6.7

Compare Source

v0.6.6

Compare Source

v0.6.5

Compare Source

v0.6.4

Compare Source

v0.6.3

Compare Source

v0.6.2

Compare Source

v0.6.1

Compare Source

v0.6.0

Compare Source

v0.5.18

Compare Source

v0.5.17

Compare Source

v0.5.16

Compare Source

v0.5.15

Compare Source

v0.5.14

Compare Source

v0.5.13

Compare Source

v0.5.12

Compare Source

v0.5.11

Compare Source

v0.5.10

Compare Source

v0.5.9

Compare Source

v0.5.8

Compare Source

v0.5.7

Compare Source

v0.5.6

Compare Source


Configuration

📅 Schedule: Branch creation - At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday ( * 0-4,22-23 * * 1-5 ), Only on Sunday and Saturday ( * * * * 0,6 ) in timezone Europe/Paris, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added dependencies use for pull requests that update a dependency file filigran team use to identify PR from the Filigran team labels Oct 22, 2025
@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch from 7044451 to c07b01e Compare October 22, 2025 21:16
@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch 5 times, most recently from 2706c8b to d950cba Compare November 14, 2025 21:02
@renovate renovate bot changed the title Update dependency @langchain/openai to v1 [deps] Update dependency @langchain/openai to v1 Nov 15, 2025
@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch 5 times, most recently from 0d42526 to cbae45c Compare November 21, 2025 23:09
@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch 2 times, most recently from c48a678 to bbc239b Compare November 27, 2025 22:10
@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch 2 times, most recently from ecf9168 to 25eb871 Compare December 8, 2025 23:34
@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch from 25eb871 to 5e78c0e Compare December 17, 2025 02:53
@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch from 5e78c0e to 849186b Compare January 1, 2026 23:04
@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch 2 times, most recently from 7e7821d to 779d101 Compare January 9, 2026 02:15
@SamuelHassine SamuelHassine force-pushed the master branch 5 times, most recently from 58e3c0e to 0b45a43 Compare January 10, 2026 19:30
@SamuelHassine SamuelHassine force-pushed the master branch 2 times, most recently from 1c222ef to 2cb4539 Compare January 10, 2026 19:59
@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch 3 times, most recently from 2393f5d to 577e723 Compare January 23, 2026 23:47
@aHenryJard aHenryJard added the askai linked to Ask AI (LLM interaction and prompts) label Jan 26, 2026
@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch 3 times, most recently from 7740f9a to d19e0b3 Compare February 3, 2026 00:39
@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch from d19e0b3 to 3e911d4 Compare February 8, 2026 22:40
@codecov
Copy link

codecov bot commented Feb 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 2.82%. Comparing base (11a6a74) to head (ca69d00).

❗ There is a different number of reports uploaded between BASE (11a6a74) and HEAD (ca69d00). Click for more details.

HEAD has 19 uploads less than BASE
Flag BASE (11a6a74) HEAD (ca69d00)
opencti-graphql 9 0
opencti-client-python 9 0
opencti-front 3 2
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #12886       +/-   ##
===========================================
- Coverage   32.37%    2.82%   -29.56%     
===========================================
  Files        3111     2191      -920     
  Lines      211860   111385   -100475     
  Branches    38413    30437     -7976     
===========================================
- Hits        68591     3147    -65444     
+ Misses     143269   108238    -35031     
Flag Coverage Δ
opencti-client-python ?
opencti-front 2.82% <ø> (ø)
opencti-graphql ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch 4 times, most recently from 76fc57b to 0e7ae60 Compare February 18, 2026 00:39
@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch 4 times, most recently from 60910ad to cd7f035 Compare February 27, 2026 22:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the OpenCTI GraphQL backend’s LangChain OpenAI provider dependency to the v1 line.

Changes:

  • Bump @langchain/openai from 0.5.5 to 1.2.10 in opencti-platform/opencti-graphql/package.json.
  • Regenerate yarn.lock to reflect the new LangChain OpenAI version and its updated transitive dependencies (notably openai@^6.x).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
opencti-platform/opencti-graphql/package.json Updates the direct dependency version for @langchain/openai.
opencti-platform/opencti-graphql/yarn.lock Updates resolved versions/peer requirements for @langchain/openai and introduces openai@6.x as a transitive dependency.

"@langchain/core": "0.3.59",
"@langchain/mistralai": "0.2.0",
"@langchain/openai": "0.5.5",
"@langchain/openai": "1.2.10",
Copy link

Copilot AI Feb 28, 2026

Choose a reason for hiding this comment

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

@langchain/openai@1.2.10 requires @langchain/core ^1.1.28 (see its peer dependency in the lockfile), but this package.json still pins @langchain/core to 0.3.59 (and @langchain/mistralai@0.2.0 also peers <0.4.0). As-is this upgrade will leave an unsatisfied peer dependency and is likely to break installs/builds. Either keep @langchain/openai on the 0.x line, or upgrade the whole LangChain stack (@langchain/core + provider packages) together and adjust code accordingly.

Suggested change
"@langchain/openai": "1.2.10",
"@langchain/openai": "0.3.12",

Copilot uses AI. Check for mistakes.
@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch 3 times, most recently from d600fc4 to 4f70387 Compare March 5, 2026 21:43
@renovate renovate bot force-pushed the renovate/langchain-openai-1.x branch from 4f70387 to ca69d00 Compare March 7, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

askai linked to Ask AI (LLM interaction and prompts) dependencies use for pull requests that update a dependency file filigran team use to identify PR from the Filigran team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants