Skip to content

Conversation

danielsogl
Copy link
Contributor

Summary

  • Added support for xAI's Grok models (grok-4 and grok-code-fast-1)
  • Implemented accurate token counting using xAI's tokenize API
  • Configured rate limits based on official xAI documentation (480 RPM, 2M TPM)

Changes

  • Added GrokModelProvider class in /runner/codegen/genkit/providers/grok.ts
  • Registered provider in /runner/codegen/genkit/models.ts
  • Updated README with XAI_API_KEY setup instructions

Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool, thank you! Some minor comments before we can merge this

Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for the contribution!

@devversion devversion merged commit 48f913b into angular:main Sep 24, 2025
3 checks passed
@danielsogl danielsogl deleted the feat/grok branch September 25, 2025 10:09
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 this pull request may close these issues.

3 participants