[deps] Update dependency @langchain/openai to v1#12886
[deps] Update dependency @langchain/openai to v1#12886renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
7044451 to
c07b01e
Compare
2706c8b to
d950cba
Compare
0d42526 to
cbae45c
Compare
c48a678 to
bbc239b
Compare
ecf9168 to
25eb871
Compare
25eb871 to
5e78c0e
Compare
5e78c0e to
849186b
Compare
7e7821d to
779d101
Compare
58e3c0e to
0b45a43
Compare
1c222ef to
2cb4539
Compare
2393f5d to
577e723
Compare
7740f9a to
d19e0b3
Compare
d19e0b3 to
3e911d4
Compare
Codecov Report✅ All modified and coverable lines are covered by tests.
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
76fc57b to
0e7ae60
Compare
60910ad to
cd7f035
Compare
There was a problem hiding this comment.
Pull request overview
Updates the OpenCTI GraphQL backend’s LangChain OpenAI provider dependency to the v1 line.
Changes:
- Bump
@langchain/openaifrom0.5.5to1.2.10inopencti-platform/opencti-graphql/package.json. - Regenerate
yarn.lockto reflect the new LangChain OpenAI version and its updated transitive dependencies (notablyopenai@^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", |
There was a problem hiding this comment.
@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.
| "@langchain/openai": "1.2.10", | |
| "@langchain/openai": "0.3.12", |
d600fc4 to
4f70387
Compare
4f70387 to
ca69d00
Compare
This PR contains the following updates:
0.5.5→1.2.12Release Notes
langchain-ai/langchainjs (@langchain/openai)
v1.2.12Compare Source
Patch Changes
3d26f58Thanks @christian-bromann! - fix(langchain): bubble up graph interrupt errors as isv1.2.11Compare Source
Patch Changes
#10106
9f30267Thanks @hntrl! - Add package version metadata to runnable traces. Each package now stamps its version inthis.metadata.versionsat construction time, making version info available in LangSmith trace metadata.#10151
f298a9bThanks @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.10Patch Changes
#10143
62ba83eThanks @topliceanurazvan! - fix(openai): emit handleLLMNewToken callback for usage chunk in Completions API streamingThe final usage chunk in
_streamResponseChunkswas only yielded via the async generator but did not callrunManager.handleLLMNewToken(). This meant callback-based consumers (e.g. LangGraph'sStreamMessagesHandler) never received theusage_metadatachunk. Added the missinghandleLLMNewTokencall to match the behavior of the main streaming loop.Updated dependencies [
10a876c,b46d96a]:v1.2.8Compare Source
Patch Changes
#10077
05396f7Thanks @christian-bromann! - feat(core): add ContextOverflowError, raise in anthropic and openai#10081
5a6f26bThanks @hntrl! - feat(core): add namespace-based symbol branding for error class hierarchiesIntroduces
createNamespaceutility for hierarchical symbol-based branding of class hierarchies.All LangChain error classes now use this pattern, replacing hand-rolled duck-type
isInstancecheckswith reliable cross-realm
Symbol.for-based identity.LangChainErrorbase class that all LangChain errors extendcreateNamespace/NamespaceAPI in@langchain/core/utils/namespaceModelAbortError,ContextOverflowErrorto use namespace brandingContextOverflowError.fromError()static factory methodaddLangChainErrorFieldsin favor ofLangChainErrorsubclassesGoogleError,ConfigurationError, etc.) to namespace brandingContextOverflowError.fromError()#10078
7be50a7Thanks @christian-bromann! - chore(*): update model profilesv1.2.7Patch Changes
#9517
23be5afThanks @christian-bromann! - fix(langchain): Refactored agent generics to use type bag pattern (AgentTypeConfig, MiddlewareTypeConfig) with new helper types for type extraction.#9761
e0360d9Thanks @christian-bromann! - fix(langchain): ensure models only make on write_todo call at a timeUpdated dependencies [
23be5af]:v1.2.6Patch Changes
a46a249]:v1.2.5Compare Source
Patch Changes
817fc9a]:v1.2.4Compare Source
Patch Changes
#9887
1fa865bThanks @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
28efb57Thanks @hntrl! - AddreasoningEffortcall option as a convenience shorthand forreasoning.effortreasoningEfforttoBaseChatOpenAICallOptionsfor easier configuration of reasoning modelsreasoningEffortintoreasoning.effortwhen calling reasoning models (o1, o3, etc.)reasoningEffortandreasoning.effortare provided,reasoning.efforttakes precedence@deprecatedto encourage use of the fullreasoning.effortoption#9876
4e42452Thanks @sflanker! - fix(openai): pass runManager to responses._generate function in ChatOpenAI#9900
a9b5059Thanks @hntrl! - Improved abort signal handling for chat models:ModelAbortErrorclass in@langchain/core/errorsthat contains partial output when a model invocation is aborted mid-streaminvoke()now throwsModelAbortErrorwith accumulatedpartialOutputwhen aborted during streaming (when using streaming callback handlers)stream()throws a regularAbortErrorwhen aborted (since chunks are already yielded to the caller)_generate()and_streamResponseChunks()methods#9900
a9b5059Thanks @hntrl! - fix(providers): add proper abort signal handling for invoke and stream operationssignal.throwIfAborted()) at the start of_generatemethods to immediately throw when signal is already aborted_streamResponseChunksto return early when signal is aborted@langchain/standard-testsThis 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.3Compare Source
Patch Changes
e2b3d90Thanks @MatanTsach! - fix(ollama): preserve tool_calls when AIMessage content is a stringv1.2.2Compare Source
Patch Changes
3efe79cThanks @christian-bromann! - fix(core): properly elevate reasoning tokensv1.2.1Compare Source
Patch Changes
a7b2a7d,a496c5f,1da1325]:v1.2.0Minor Changes
442197dThanks @Gulianrdgd! - Adds support for thethinkparameter to theOllamaLLM classPatch Changes
3efe79cThanks @christian-bromann! - fix(core): properly elevate reasoning tokensv1.1.3Patch Changes
#9534
bd2c46eThanks @christian-bromann! - fix(@langchain/core): update and bundlep-retry,ansi-styles,camelcaseanddecamelizedependencies#9544
487378bThanks @hntrl! - fix tool chunk concat behavior (#9450)#9505
138e7fbThanks @chosh-dev! - feat: replace btoa with toBase64Url for encoding in drawMermaidImagev1.1.2Patch Changes
#9601
d79d2ffThanks @Orenoid! - feat(zhipuai): support tool calling in ChatZhipuAIUpdated dependencies [
13c9d5b,cc502e1,75b3b90]:v1.1.1Patch Changes
#9495
636b994Thanks @gsriram24! - fix: use dynamic import for p-retry to support CommonJS environments#9531
38f0162Thanks @hntrl! - addextrasto toolsv1.1.0Minor Changes
#9424
f17b2c9Thanks @hntrl! - add support forbetasparam#9424
f17b2c9Thanks @hntrl! - add support for native structured outputPatch Changes
f17b2c9Thanks @hntrl! - bump sdk versionv0.6.16Compare Source
v0.6.15Compare Source
v0.6.14Compare Source
v0.6.13Compare Source
v0.6.12Compare Source
v0.6.11Compare Source
v0.6.10Compare Source
v0.6.9Compare Source
v0.6.8Compare Source
v0.6.7Compare Source
v0.6.6Compare Source
v0.6.5Compare Source
v0.6.4Compare Source
v0.6.3Compare Source
v0.6.2Compare Source
v0.6.1Compare Source
v0.6.0Compare Source
v0.5.18Compare Source
v0.5.17Compare Source
v0.5.16Compare Source
v0.5.15Compare Source
v0.5.14Compare Source
v0.5.13Compare Source
v0.5.12Compare Source
v0.5.11Compare Source
v0.5.10Compare Source
v0.5.9Compare Source
v0.5.8Compare Source
v0.5.7Compare Source
v0.5.6Compare 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.
This PR was generated by Mend Renovate. View the repository job log.