Agent DailyAgent Daily
releaseintermediate

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

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

langchain-openai version 1.2.2 is a maintenance release that includes bug fixes, dependency updates, and test improvements. Key fixes address httpx finalizers, context overflow error handling, and LLM context size sourcing from model profiles. The release also updates multiple dependencies including langsmith, idna, and urllib3, and refreshes OpenAI model references and profiles.

Key Points

  • Fixed httpx finalizers guard to prevent resource leaks in OpenAI integration
  • Resolved LLM context size sourcing to use model profiles instead of hardcoded values
  • Broadened ContextOverflowError condition to support multiple provider types beyond OpenAI
  • Updated langsmith dependency from 0.7.31 to 0.8.5 with multiple intermediate versions
  • Fixed audio chat and Azure embedding integration tests that were previously broken
  • Refreshed stale OpenAI model references and model profile data across core, langchain, and openai packages
  • Documented base_url environment variable fallback chain for configuration flexibility
  • Bumped security and utility dependencies: idna (3.11→3.15), urllib3 (2.6.3→2.7.0), langchain-core (1.3.2→1.3.3)
  • Implemented per-call model override support with ls_model_name assertion in standard tests
  • Hardened Dependabot version-bound preservation in CI/CD infrastructure

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.2.2: langchain-openai==1.2.2 | Agent Daily