Skip to content

The agent engineering platform.

docs: update xai docs (#31382)

ccurmec8a656c05b5b
diff --git a/docs/docs/integrations/providers/xai.ipynb b/docs/docs/integrations/providers/xai.ipynb
index 5fa5b441b7..4840db40a5 100644
--- a/docs/docs/integrations/providers/xai.ipynb
+++ b/docs/docs/integrations/providers/xai.ipynb
@@ -45,7 +45,9 @@
"id": "8304b4d9",
"metadata": {},
"source": [
- "## Example"
+ "## Example\n",
+ "\n",
+ "See [ChatXAI docs](/docs/integrations/chat/xai) for detail and supported features."
]
},
{
diff --git a/libs/partners/xai/langchain_xai/chat_models.py b/libs/partners/xai/langchain_xai/chat_models.py
index d3a8e7ca0a..d158b693e5 100644
--- a/libs/partners/xai/langchain_xai/chat_models.py
+++ b/libs/partners/xai/langchain_xai/chat_models.py
@@ -218,6 +218,7 @@ class ChatXAI(BaseChatOpenAI): # type: ignore[override]
feature that enables Grok to ground its answers using results from web searches.
.. code-block:: python
+
from langchain_xai import ChatXAI
llm = ChatXAI(