releaseintermediate
[Release] langchain-ai/langchain langchain-openai==1.4.2: langchain-openai==1.4.2
By github-actions[bot]github
View original on githublangchain-openai version 1.4.2 is a patch release that addresses several critical issues with OpenAI integration. Key fixes include proper handling of context window exceeded errors, filtering of langchain-generated content block IDs, preservation of response text options, and redaction of MCP authorization headers. The release also includes dependency updates and refreshed model profile data.
Key Points
- •Handle `ContextWindowExceededError` gracefully to prevent crashes when token limits are exceeded
- •Filter langchain-generated content block IDs to avoid conflicts and ensure clean API responses
- •Preserve Response `text` options to maintain backward compatibility with existing implementations
- •Redact MCP `authorization` headers for improved security and preventing credential leaks
- •Bump minor and patch dependencies across 3 directories with 7 updates for improved stability
- •Refresh model profile data to ensure accurate model capabilities and pricing information
- •Maintain compatibility with OpenAI API changes and best practices
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