Skip to content

Conversation

bhouston
Copy link
Member

@bhouston bhouston commented Mar 4, 2025

Add xAI/Grok and Mistral AI support via Vercel AI SDK

Description

This PR adds support for two new AI providers:

  1. xAI/Grok via the Vercel AI SDK provider (@ai-sdk/xai)
  2. Mistral AI via the Vercel AI SDK provider (@ai-sdk/mistral)

Changes

  • Added dependencies for xAI and Mistral AI providers
  • Updated ModelProvider type to include 'xai' and 'mistral'
  • Updated getModel() function to support the new providers
  • Added API key checks for xAI and Mistral AI (XAI_API_KEY and MISTRAL_API_KEY)
  • Updated CLI options to include the new providers
  • Updated README.md with instructions for the new providers
  • Added tests for the new providers

Testing

  • Added unit tests for the new providers
  • Verified all existing tests pass

References

Closes #89

@bhouston bhouston merged commit 7ffcd57 into main Mar 4, 2025
1 check passed
Copy link

sentry-io bot commented Mar 7, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ Error: Unknown model provider: grok getModel(config.ts) View Issue

Did you find this useful? React with a 👍 or 👎

Copy link

🎉 This PR is included in version mycoder-agent-v1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version mycoder-v1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@bhouston bhouston deleted the feature/add-xai-mistral-support branch March 12, 2025 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add xAI/Grok and Mistral AI support via Vercel AI SDK

1 participant