releaseintermediate
[Release] langchain-ai/langchain langchain-openrouter==0.2.2: langchain-openrouter==0.2.2
By github-actions[bot]github
View original on githublangchain-openrouter v0.2.2 release introduces new `session_id` and `trace` fields for enhanced tracking and observability. The release includes content-block-centric streaming improvements, dependency updates (langsmith 0.7.22→0.7.31, pytest 9.0.3), security patches (pygments CVE-2026-4539), and multiple model profile refreshes. Key fixes address token extraction in usage metadata and core version compatibility.
Key Points
- •New `session_id` and `trace` fields added for improved session tracking and distributed tracing capabilities
- •Content-block-centric streaming (v2) implemented in core for better streaming architecture
- •Security patch: pygments dependency bumped to ≥2.20.0 to address CVE-2026-4539 vulnerability
- •Fixed token extraction in usage metadata with proper None-checks for OpenAI, Groq, and OpenRouter integrations
- •Dependency updates: langsmith upgraded from 0.7.22 to 0.7.31, pytest bumped to 9.0.3
- •Model profile data refreshed multiple times to keep provider model information current
- •Minimum core version requirements bumped to ensure compatibility with new features
- •Integration test infrastructure standardized across partner packages with pytest-xdist support
- •Documentation updated with corrected X (Twitter) handle references
Found this useful? Add it to a playbook for a step-by-step implementation guide.
Workflow Diagram
Start Process
Step A
Step B
Step C
Complete