Add xAI to ChatModelTabs drop down (#30028)

Thank you for contributing to LangChain!

- [ ] **PR title**: "docs: add xAI to ChatModelTabs"

- [ ] **PR message**:
- **Description:** Added `ChatXAI` to `ChatModelTabs` dropdown to
improve visibility of xAI chat models (e.g., "grok-2", "grok-3").
    - **Issue:** Follow-up to #30010 
    - **Dependencies:** none
    - **Twitter handle:** @tiestvangool 

If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.

---------

Co-authored-by: Chester Curme <chester.curme@gmail.com>
This commit is contained in:
Tiest van Gool 2025-02-28 07:08:12 -07:00 committed by GitHub
parent f07338d2bf
commit 476cd26f57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -211,6 +211,13 @@ ${llmVarName} = ChatWatsonx(
apiKeyName: "DATABRICKS_TOKEN",
packageName: "databricks-langchain",
},
{
value: "xai",
label: "xAI",
model: "grok-2",
apiKeyName: "XAI_API_KEY",
packageName: "langchain-xai",
},
].map((item) => ({
...item,
...overrideParams?.[item.value],