Skip to content

Commit b808d27

Browse files
docs: fix grammar in xai.ipynb (#31399)
Thank you for contributing to LangChain! - [x] **PR title**: "package: description" - Where "package" is whichever of langchain, core, etc. is being modified. Use "docs: ..." for purely docs changes, "infra: ..." for CI changes. - Example: "core: add foobar LLM" - [x] **PR message**: ***Delete this entire checklist*** and replace with - **Description:** a description of the change - **Issue:** the issue # it fixes, if applicable - **Dependencies:** any dependencies required for this change - **Twitter handle:** if your PR gets announced, and you'd like a mention, we'll gladly shout you out! - [x] **Add tests and docs**: If you're adding a new integration, please include 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. - [x] **Lint and test**: Run `make format`, `make lint` and `make test` from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/ Additional guidelines: - Make sure optional dependencies are imported within a function. - Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests. - Most PRs should not touch more than one package. - Changes should be backwards compatible. If no one reviews your PR within a few days, please @-mention one of baskaryan, eyurtsev, ccurme, vbarda, hwchase17.
1 parent b81a4ed commit b808d27

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/docs/integrations/chat/xai.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"# ChatXAI\n",
1919
"\n",
2020
"\n",
21-
"This page will help you get started with xAI [chat models](../../concepts/chat_models.mdx). For detailed documentation of all `ChatXAI` features and configurations head to the [API reference](https://python.langchain.com/api_reference/xai/chat_models/langchain_xai.chat_models.ChatXAI.html).\n",
21+
"This page will help you get started with xAI [chat models](../../concepts/chat_models.mdx). For detailed documentation of all `ChatXAI` features and configurations, head to the [API reference](https://python.langchain.com/api_reference/xai/chat_models/langchain_xai.chat_models.ChatXAI.html).\n",
2222
"\n",
2323
"[xAI](https://console.x.ai/) offers an API to interact with Grok models.\n",
2424
"\n",
@@ -36,11 +36,11 @@
3636
"\n",
3737
"## Setup\n",
3838
"\n",
39-
"To access xAI models you'll need to create an xAI account, get an API key, and install the `langchain-xai` integration package.\n",
39+
"To access xAI models, you'll need to create an xAI account, get an API key, and install the `langchain-xai` integration package.\n",
4040
"\n",
4141
"### Credentials\n",
4242
"\n",
43-
"Head to [this page](https://console.x.ai/) to sign up for xAI and generate an API key. Once you've done this set the `XAI_API_KEY` environment variable:"
43+
"Head to [this page](https://console.x.ai/) to sign up for xAI and generate an API key. Once you've done this, set the `XAI_API_KEY` environment variable:"
4444
]
4545
},
4646
{
@@ -243,7 +243,7 @@
243243
"\n",
244244
"### ChatXAI.bind_tools()\n",
245245
"\n",
246-
"With `ChatXAI.bind_tools`, we can easily pass in Pydantic classes, dict schemas, LangChain tools, or even functions as tools to the model. Under the hood these are converted to an OpenAI tool schemas, which looks like:\n",
246+
"With `ChatXAI.bind_tools`, we can easily pass in Pydantic classes, dict schemas, LangChain tools, or even functions as tools to the model. Under the hood, these are converted to an OpenAI tool schema, which looks like:\n",
247247
"```\n",
248248
"{\n",
249249
" \"name\": \"...\",\n",
@@ -345,7 +345,7 @@
345345
"source": [
346346
"## API reference\n",
347347
"\n",
348-
"For detailed documentation of all `ChatXAI` features and configurations head to the API reference: https://python.langchain.com/api_reference/xai/chat_models/langchain_xai.chat_models.ChatXAI.html"
348+
"For detailed documentation of all `ChatXAI` features and configurations, head to the API reference: https://python.langchain.com/api_reference/xai/chat_models/langchain_xai.chat_models.ChatXAI.html"
349349
]
350350
}
351351
],
@@ -365,7 +365,7 @@
365365
"name": "python",
366366
"nbconvert_exporter": "python",
367367
"pygments_lexer": "ipython3",
368-
"version": "3.10.4"
368+
"version": "3.12.10"
369369
}
370370
},
371371
"nbformat": 4,

0 commit comments

Comments
 (0)