Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add Grok/XAI support to the LLM abstraction #148

Closed
bhouston opened this issue Mar 7, 2025 · 2 comments · May be fixed by #211
Closed

Add Grok/XAI support to the LLM abstraction #148

bhouston opened this issue Mar 7, 2025 · 2 comments · May be fixed by #211

Comments

@bhouston
Copy link
Member

bhouston commented Mar 7, 2025

Add Grok/XAI support to the LLM abstraction

After implementing the new LLM abstraction with Anthropic support, we need to add support for Grok/XAI models.

Tasks

  1. Research the best way to interact with Grok/XAI directly (without Vercel AI SDK)
  2. Implement Grok/XAI adapter for our LLM abstraction
  3. Convert between our message format and Grok/XAI's format
  4. Handle tool calls and tool results properly
  5. Update configuration to support Grok/XAI models
  6. Add tests for Grok/XAI integration

Benefits

  • Restore support for Grok/XAI models that was removed when reverting Vercel AI SDK
  • Provide users with more model options
  • Implement a cleaner, more reliable integration than the previous version
@bhouston
Copy link
Member Author

/mycoder, can you implement a Grok integration and can you make a PR of the resulting implementation?

github-actions bot pushed a commit that referenced this issue Mar 12, 2025
- Created XAI provider implementation

- Updated provider registry and configuration

- Added tests and documentation

Closes #148
@bhouston
Copy link
Member Author

Hi @bhouston,

I've implemented the Grok/XAI integration as requested. The PR is available at #211.

The implementation includes:

  • Full support for Grok/XAI models in the LLM abstraction
  • Tool calls support
  • Configuration options for API key and model selection
  • Documentation on how to use Grok models with MyCoder

Once the PR is merged, users will be able to:

  1. Set their XAI API key: mycoder config set XAI_API_KEY <key>
  2. Switch to XAI provider: mycoder config set provider xai
  3. Select a Grok model: mycoder config set model grok-2-1212

Let me know if you'd like any changes or have any questions about the implementation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant