Change8

langchain-openrouter==0.2.2

📦 langchainView on GitHub →
2 features🐛 1 fixes🔧 3 symbols

Summary

This release introduces new fields for session tracking in OpenRouter and implements content-block-centric streaming (v2). It also includes several dependency updates and a fix for usage metadata extraction across multiple providers.

Migration Steps

  1. Ensure `pygments` is at least version 2.20.0 to address a CVE.

✨ New Features

  • Added support for `session_id` and `trace` fields in OpenRouter.
  • Introduced content-block-centric streaming (v2) in core components.

🐛 Bug Fixes

  • Fixed token extraction logic for usage metadata in OpenAI, Groq, and OpenRouter integrations by using is-not-None checks.

Affected Symbols