// AI Platform Drift

langchain-xai 1.4.0 routes ChatXAI through LangSmith gateway

LangChain releases · published 2026-11-16 06:31 UTC
WORTH KNOWING VERIFY_ONLY API
WHAT CHANGEDlangchain-xai version 1.4.0 routes ChatXAI through the LangSmith gateway. The release also removes Python 3.10 support and fixes token computation to include reasoning tokens in total_tokens.
WHY IT MATTERSRouting through LangSmith gateway changes the network path for xAI API calls, which may affect observability, latency characteristics, or firewall rules. Applications running on Python 3.10 will fail to install or upgrade this package.
WHAT TO DOIf using ChatXAI from langchain-xai, verify that routing through LangSmith gateway does not conflict with network policies or monitoring setup. If running Python 3.10, either upgrade to Python 3.11+ or pin to langchain-xai 1.3.0.
Model-reported confidence 75% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## langchain-xai==1.4.0
+https://github.com/langchain-ai/langchain/releases/tag/langchain-xai%3D%3D1.4.0
+2026-11-15T21:35:22Z
+
+Changes since langchain-xai==1.3.0
+fix(groq,mistralai,xai): bump deps (#41884)
+release(xai): 1.4.0 (#41857)
+feat(xai): route ChatXAI through LangSmith gateway (#41838)
+feat(partners): Remove EOL'd Python 3.10 from partner packages (#41268)
+chore(model-profiles): refresh model profile data (#41651)
+chore(infra): relax third-party dependency upper bounds (#41407)
+chore(deps): bump aiohttp from 3.14.4 to 3.14.5 in /libs/partners/xai (#41374)
+chore(deps): bump certifi from 2025.8.3 to 2026.10.19 in /libs/partners/xai (#41371)
+chore(deps): bump aiohttp from 3.14.3 to 3.14.4 in /libs/partners/xai (#41361)
+chore(model-profiles): refresh model profile data (#41325)
+fix: fix dependencies in some partner packages (#41266)
+chore(model-profiles): refresh model profile data (#41017)
+chore(deps): bump urllib3 from 2.7.0 to 2.8.0 in /libs/partners/xai (#40942)
+chore(model-profiles): refresh model profile data (#40747)
+chore(deps): bump anyio from 4.11.0 to 4.14.2 in /libs/partners/xai (#40628)
+chore(model-profiles): refresh model profile data (#40600)
+chore(model-profiles): refresh model profile data (#40217)
+docs(xai): point structured outputs guide link to official xAI docs (#40026)
+fix(xai): recompute total_tokens after adding reasoning tokens to output (#39667)
+chore(model-profiles): refresh model profile data (#39692)
+chore(model-profiles): refresh model profile data (#39625)
+chore: bump aiohttp from 3.14.1 to 3.14.3 in /libs/partners/xai (#39241)
+chore(model-profiles): refresh model profile data (#39166)
+chore(model-profiles): refresh model profile data (#39050)
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.72, needed 0.5
triage reasoningGateway routing change and Python 3.10 EOL removal affect deployment and compatibility decisions.
signalsnew release version published · routing change: ChatXAI now routes through LangSmith gateway · Python 3.10 support removed from partner packages · token computation fix for reasoning tokens · dependency updates including security-relevant packages (certifi, urllib3)
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)