[PR #2517] [MERGED] Add Grok/XAI support for LLM & agents #4022

Closed
opened 2026-02-22 18:34:58 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2517
Author: @timothycarambat
Created: 10/21/2024
Status: Merged
Merged: 10/21/2024
Merged by: @timothycarambat

Base: masterHead: xai-grok-support


📝 Commits (2)

📊 Changes

21 files changed (+512 additions, -0 deletions)

View changed files

📝 .vscode/settings.json (+1 -0)
📝 docker/.env.example (+4 -0)
frontend/src/components/LLMSelection/XAiLLMOptions/index.jsx (+114 -0)
📝 frontend/src/hooks/useGetProvidersModels.js (+1 -0)
frontend/src/media/llmprovider/xai.png (+0 -0)
📝 frontend/src/pages/GeneralSettings/LLMPreference/index.jsx (+11 -0)
📝 frontend/src/pages/OnboardingFlow/Steps/DataHandling/index.jsx (+8 -0)
📝 frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx (+9 -0)
📝 frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx (+1 -0)
📝 server/.env.example (+4 -0)
📝 server/models/systemSettings.js (+4 -0)
📝 server/utils/AiProviders/modelMap.js (+3 -0)
server/utils/AiProviders/xai/index.js (+168 -0)
📝 server/utils/agents/aibitat/index.js (+2 -0)
📝 server/utils/agents/aibitat/providers/ai-provider.js (+8 -0)
📝 server/utils/agents/aibitat/providers/index.js (+2 -0)
server/utils/agents/aibitat/providers/xai.js (+116 -0)
📝 server/utils/agents/index.js (+6 -0)
📝 server/utils/helpers/customModels.js (+33 -0)
📝 server/utils/helpers/index.js (+6 -0)

...and 1 more files

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #2516
resolves #945

What is in this change?

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/2517 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 10/21/2024 **Status:** ✅ Merged **Merged:** 10/21/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `xai-grok-support` --- ### 📝 Commits (2) - [`b321ef1`](https://github.com/Mintplex-Labs/anything-llm/commit/b321ef1ade2d9f9d2b54817b1172c29e0a33551c) Add Grok/XAI support for LLM & agents - [`cc677ba`](https://github.com/Mintplex-Labs/anything-llm/commit/cc677baf905ebc54645d1f6fd6f0f9e2c38f3c1d) forgot files ### 📊 Changes **21 files changed** (+512 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.vscode/settings.json` (+1 -0) 📝 `docker/.env.example` (+4 -0) ➕ `frontend/src/components/LLMSelection/XAiLLMOptions/index.jsx` (+114 -0) 📝 `frontend/src/hooks/useGetProvidersModels.js` (+1 -0) ➕ `frontend/src/media/llmprovider/xai.png` (+0 -0) 📝 `frontend/src/pages/GeneralSettings/LLMPreference/index.jsx` (+11 -0) 📝 `frontend/src/pages/OnboardingFlow/Steps/DataHandling/index.jsx` (+8 -0) 📝 `frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx` (+9 -0) 📝 `frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx` (+1 -0) 📝 `server/.env.example` (+4 -0) 📝 `server/models/systemSettings.js` (+4 -0) 📝 `server/utils/AiProviders/modelMap.js` (+3 -0) ➕ `server/utils/AiProviders/xai/index.js` (+168 -0) 📝 `server/utils/agents/aibitat/index.js` (+2 -0) 📝 `server/utils/agents/aibitat/providers/ai-provider.js` (+8 -0) 📝 `server/utils/agents/aibitat/providers/index.js` (+2 -0) ➕ `server/utils/agents/aibitat/providers/xai.js` (+116 -0) 📝 `server/utils/agents/index.js` (+6 -0) 📝 `server/utils/helpers/customModels.js` (+33 -0) 📝 `server/utils/helpers/index.js` (+6 -0) _...and 1 more files_ </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #2516 resolves #945 ### What is in this change? - Adds full support for xAI's Grok-beta model via their API. https://x.com/elonmusk/status/1848398370219364385 <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:34:58 -05:00
yindo closed this issue 2026-02-22 18:34:59 -05:00
yindo changed title from [PR #2517] Add Grok/XAI support for LLM & agents to [PR #2517] [MERGED] Add Grok/XAI support for LLM & agents 2026-06-05 15:16:25 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4022