Skip to content

Conversation

@edwin-truthsearch-io
Copy link
Contributor

@edwin-truthsearch-io edwin-truthsearch-io commented Jun 4, 2025

Related GitHub Issue

Closes: #4313

Description

Test Procedure

  1. Ran unit tests to and resolved false failures due to removal of old models.
  2. Used xAI and anecdotally noted the credit spend rising more slowly.

Type of Change

  • 🐛 Bug Fix: Non-breaking change that fixes an issue.
  • New Feature: Non-breaking change that adds functionality.
  • 💥 Breaking Change: Fix or feature that would cause existing functionality to not work as expected.
  • ♻️ Refactor: Code change that neither fixes a bug nor adds a feature.
  • 💅 Style: Changes that do not affect the meaning of the code (white-space, formatting, etc.).
  • 📚 Documentation: Updates to documentation files.
  • ⚙️ Build/CI: Changes to the build process or CI configuration.
  • 🧹 Chore: Other changes that don't modify src or test files.

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Code Quality:
    • My code adheres to the project's style guidelines.
    • There are no new linting errors or warnings (npm run lint).
    • All debug code (e.g., console.log) has been removed.
  • Testing:
    • New and/or updated tests have been added to cover my changes.
    • All tests pass locally (npm test).
    • The application builds successfully with my changes.
  • Branch Hygiene: My branch is up-to-date (rebased) with the main branch.
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Changeset: A changeset has been created using npm run changeset if this PR includes user-facing changes or dependency updates.
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

Documentation Updates

Additional Notes

Get in Touch

truthsearch_io_74288


Important

Update xAI models and pricing, removing old models and adding new ones with adjusted context windows and pricing.

  • Models Update:
    • Removed old models grok-3-beta, grok-3-fast-beta, grok-3-mini-beta, grok-3-mini-fast-beta, grok-2-latest, grok-2, grok-2-vision-latest, grok-2-vision, grok-vision-beta, grok-beta from xai.ts.
    • Added grok-2-1212, grok-2-vision-1212, grok-2-image-1212 with updated descriptions and context windows.
    • Updated grok-3, grok-3-fast, grok-3-mini, grok-3-mini-fast with new cache pricing and context window sizes.
  • Tests Update:
    • Updated xai.test.ts to reflect model changes, replacing old model IDs with new ones.
    • Ensured tests for reasoning effort parameter are aligned with new model configurations.

This description was created by Ellipsis for 0535d132736b7c563ad6632bae97c80dcc96fd87. You can customize this summary. It will automatically update as commits are pushed.

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. bug Something isn't working labels Jun 4, 2025
@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Prelim Review] in Roo Code Roadmap Jun 4, 2025
Copy link
Member

@daniel-lxs daniel-lxs left a comment

Choose a reason for hiding this comment

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

Hey @edwin-truthsearch-io, thank you for the contribution!

Can you double check the models info? I left some comments on it.

Thank you!

@daniel-lxs daniel-lxs moved this from PR [Needs Prelim Review] to PR [Changes Requested] in Roo Code Roadmap Jun 4, 2025
@edwin-truthsearch-io
Copy link
Contributor Author

edwin-truthsearch-io commented Jun 5, 2025

I enabled console debugging locally, and I could see that the changes to the modelInfo were getting reflected in the UI, so this change is done.

@edwin-truthsearch-io
Copy link
Contributor Author

@daniel-lxs I rebased the to main and added a changeset. Is it good to go now?

Copy link
Member

@daniel-lxs daniel-lxs left a comment

Choose a reason for hiding this comment

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

Thank you!

This looks good but I have no way of testing it since I don't have an xAI account.

cc: @hannesrudolph idk if you do.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 6, 2025
@daniel-lxs daniel-lxs added PR - Needs Review and removed lgtm This PR has been approved by a maintainer PR - Changes Requested labels Jun 6, 2025
@daniel-lxs daniel-lxs moved this from PR [Changes Requested] to PR [Needs Review] in Roo Code Roadmap Jun 6, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 12, 2025
@mrubens mrubens merged commit 8b6f5f8 into RooCodeInc:main Jun 12, 2025
16 checks passed
@github-project-automation github-project-automation bot moved this from PR [Needs Review] to Done in Roo Code Roadmap Jun 12, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jun 12, 2025
cte pushed a commit that referenced this pull request Jun 24, 2025
* update xai models and pricing

* cache accounting for xAI

* change log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer PR - Needs Review size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Should update xAI models and pricing

4 participants