Agent DailyAgent Daily
releaseintermediate

[Release] langchain-ai/langchain langchain-openai==1.5.2: langchain-openai==1.5.2

By github-actions[bot]github
View original on github

langchain-openai version 1.5.2 is released with several bug fixes and feature enhancements. Key improvements include preserving reasoning item boundaries in OpenAI responses, extracting gateway metadata from response headers, and adding support for o-series models in token counting. The release addresses compatibility issues and enhances the integration between LangChain and OpenAI's API.

Key Points

  • Preserve reasoning item boundaries in OpenAI responses to maintain structured output integrity
  • Extract gateway metadata from response headers when available for better request tracking and debugging
  • Add support for o-series models (advanced reasoning models) in the `get_num_tokens_from_messages` function
  • Update snapshots to reflect changes in test expectations and API responses
  • Maintain backward compatibility while improving OpenAI integration robustness
  • Enable better observability through metadata extraction from API responses
  • Support newer OpenAI model families in token estimation calculations

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
Quality

Concepts

[Release] langchain-ai/langchain langchain-openai==1.5.2: langchain-openai==1.5.2 | Agent Daily