Change8

Migrating to LangChain langchain-xai==1.3.0

Version langchain-xai==1.3.0 introduces 1 breaking change. This guide details how to update your code.

Released: 7/21/2026

1
Breaking Changes
2
Migration Steps
12
Affected Symbols

⚠️ Check Your Code

If you use any of these symbols, you need to read this guide:

langsmithpytestvcrpymypyaiohttpidnarequestsurllib3langchain-coreorjsonpygmentsChatOpenAI

Breaking Changes

Issue #1

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. 1
    Remove the `stop` parameter from any calls within the `xai` module.
  2. 2
    Ensure `langchain-core` is at least version `1.2.21`.

Release Summary

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

Need More Details?

View the full release notes and all changes for LangChain langchain-xai==1.3.0.

View Full Changelog