github langchain-ai/langchainjs @langchain/openai@1.2.10

latest release: @langchain/xai@1.3.6
13 hours ago

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]:

    • @langchain/core@1.1.28

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.