Skip to content

Add Grok as a provider#17

Open
charvimehradu wants to merge 1 commit into4.x-devfrom
grokProvider
Open

Add Grok as a provider#17
charvimehradu wants to merge 1 commit into4.x-devfrom
grokProvider

Conversation

@charvimehradu
Copy link
Copy Markdown
Collaborator

Pull Request for Issue #11

Summary of Changes

Added GrokProvider class with core functionality:

  • Supports the /v1/chat/completions endpoint for chat completions using Grok models
  • Supports the /v1/chat/completions endpoint for vision capability
  • Supports the /v1/images/generations endpoint for image generation (grok-2-image, grok-2-image-latest)
  • Supports the /v1/embeddings endpoint for text embeddings (v1 model)
  • Supports the /v1/models endpoint for listing available models

Testing Instructions

Added unit tests for each capability in tests/GrokProvider/

Documentation Changes Required

  • Update the framework documentation to include grok as an available provider
  • Document the XAI_API_KEY environment variable requirement
  • Add usage examples for chat, vision, image generation, and embeddings with Grok

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.

1 participant