Skip to content

feat: add Grok/XAI support to the LLM abstraction #211

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

bhouston
Copy link
Member

Add Grok/XAI Support to the LLM Abstraction

This PR adds support for Grok/XAI models to the LLM abstraction, as requested in issue #148.

Changes

  • Created a new XAI provider implementation that follows the same pattern as the Anthropic provider
  • Updated the provider registry to include the XAI provider
  • Updated configuration files to support XAI models and API keys
  • Added tests for the XAI provider
  • Added documentation for using Grok/XAI models with MyCoder

Testing

The implementation has been tested with:

  • Unit tests for the XAI provider
  • Manual verification of the configuration changes

Documentation

Added a new documentation file docs/grok-integration.md that explains how to:

  • Configure the XAI API key
  • Set XAI as the default provider
  • Select different Grok models
  • Use Grok for a single command
  • Troubleshoot common issues

Notes

  • The implementation follows the OpenAI-compatible API format used by XAI/Grok
  • Tool calls are fully supported, following the same pattern as other providers
  • API key configuration works through both environment variables and the config system

Closes #148

- Created XAI provider implementation

- Updated provider registry and configuration

- Added tests and documentation

Closes #148
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Grok/XAI support to the LLM abstraction
1 participant