Skip to content

Releases: langchain-ai/langchainjs

langchain@1.4.2

21 May 22:00
caad091

Choose a tag to compare

Patch Changes

@langchain/xai@1.3.19

21 May 22:01
caad091

Choose a tag to compare

Patch Changes

@langchain/together-ai@0.1.5

21 May 22:01
caad091

Choose a tag to compare

Patch Changes

@langchain/openrouter@0.3.0

21 May 22:01
caad091

Choose a tag to compare

Minor Changes

  • #10666 2bb55b0 Thanks @hnustwjj! - feat(openrouter): surface reasoning content as v1 standard content blocks

    convertOpenRouterResponseToBaseMessage and
    convertOpenRouterDeltaToBaseMessageChunk now copy OpenRouter's
    reasoning (flat string) and reasoning_details (structured array) fields
    onto additional_kwargs.reasoning_content / additional_kwargs.reasoning_details.
    A new ChatOpenRouterTranslator is registered in @langchain/core under
    the "openrouter" provider key so AIMessage.contentBlocks emits standard
    {type: "reasoning"} blocks alongside text and tool calls.

    Previously, reasoning text returned by reasoning-capable models routed
    through OpenRouter (DeepSeek R1, Minimax M2, Claude extended thinking,
    o-series, etc.) was silently dropped: only the reasoning_tokens count
    was preserved via usage_metadata. Consumers using standard content blocks
    (including the frontend agent UI patterns shown in the docs) could not
    display the model's chain of thought.

Patch Changes

@langchain/openai@1.4.7

21 May 22:00
caad091

Choose a tag to compare

Patch Changes

@langchain/neo4j@0.1.6

21 May 22:01
caad091

Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @langchain/classic@1.0.34

@langchain/mistralai@1.1.0

21 May 22:01
caad091

Choose a tag to compare

Minor Changes

  • #10873 a74d574 Thanks @baptistejamin! - chore(mistralai): upgrade to @mistralai/mistralai v2

    Also populates response_metadata.model on chat completions (was missing before).

@langchain/ibm@0.1.1

21 May 22:01
caad091

Choose a tag to compare

Patch Changes

@langchain/fireworks@0.1.5

21 May 22:01
caad091

Choose a tag to compare

Patch Changes

@langchain/deepseek@1.0.27

21 May 22:00
caad091

Choose a tag to compare

Patch Changes