Change8

langchain-xai==1.3.0

Breaking Changes
📦 langchainView on GitHub →
1 breaking7 features🐛 6 fixes🔧 12 symbols

Summary

This release introduces new features like `reasoning_effort` parameter and content-block-centric streaming, alongside several bug fixes and dependency updates.

⚠️ Breaking Changes

  • The `stop` parameter has been dropped from the `xai` module as it was unsupported. If you were using this parameter, you will need to remove it from your calls.

Migration Steps

  1. Remove the `stop` parameter from any calls within the `xai` module.
  2. Ensure `langchain-core` is at least version `1.2.21`.

✨ New Features

  • Added `reasoning_effort` as a standard chat model parameter in the core module.
  • Added package version tracking to tracing metadata in core and partners modules.
  • Enabled validation of tool call chunks during streaming in standard tests.
  • Introduced content-block-centric streaming (v2) in the core module.
  • Added support for `base_url` alias and `XAI_API_BASE` environment variable in the xai module.
  • Added new fields to model profiles and a corresponding `Makefile` target.
  • Added `text_inputs` and `text_outputs` to model profiles.

🐛 Bug Fixes

  • Patched Dependabot dependency vulnerabilities.
  • Dropped unsupported `stop` parameter in the xai module.
  • Renamed package version trace metadata in core and partners modules.
  • Added missing `ModelProfile` fields and warned on schema drift in core and model-profiles.
  • Sorted generated profiles by model ID for stable diffs in model-profiles.
  • Live search deprecation in xai module.

Affected Symbols