Skip to content

xAi (grok-2-vision-1212) added to llm list #496

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

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

Conversation

mirzaaghazadeh
Copy link

I added xAi and model grok-2-vision-1212 for generate code with that

@mirzaaghazadeh mirzaaghazadeh changed the title add xAi(grok) to llm list xAi (grok-2-vision-1212) added to llm list Feb 24, 2025
@abi
Copy link
Owner

abi commented Feb 24, 2025

Thank you - how are the results?

And is Grok 3 not available via API yet?

@mirzaaghazadeh
Copy link
Author

mirzaaghazadeh commented Feb 24, 2025

Thank you - how are the results?
And is Grok 3 not available via API yet?

I liked the results , they are good

It will release soon (read about it) , But we need to see first grok 3 version will have vision or not , for now I think grok-2-vision-1212 is very good !

Its better to have xAi from now on this project when grok3 will come it will be very better !

@mirzaaghazadeh
Copy link
Author

mirzaaghazadeh commented Feb 24, 2025

Add X.AI (Grok) Integration

Overview

This PR adds support for X.AI's Grok-2 Vision model as a new provider option in the screenshot-to-code tool. The integration includes optimized image handling and proper error management for Grok's API requirements.

Changes

  • Added Grok-2 Vision model support with X.AI API integration
  • Implemented provider-based configuration system:
    • PROVIDER=xai for X.AI/Grok
    • PROVIDER=anthropic for Claude
    • PROVIDER=openai for GPT-4 Vision
  • Enhanced image processing with configurable size limits
  • Added aggressive image compression (512KB limit) for Grok compatibility
  • Updated documentation with provider setup instructions
  • Added Contributors section in README

Documentation

  • Added Grok-2 Vision to supported models list
  • Added provider configuration instructions
  • Updated environment variable setup guide
  • Added Contributors section

Dependencies

  • Uses Anthropic SDK with custom base URL for X.AI API
  • No new dependencies required

Additional Notes

Model configured: grok-2-vision-1212

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.

2 participants