Skip to content

Conversation

@uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Nov 21, 2025

Description

support for new grok 4.1

resolves CON-4961

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-review

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See this PR as a good example. ]

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Summary by cubic

Add support for xAI Grok 4.1 Fast models and update docs to recommend Grok‑4 for chat, resolving CON‑4961. Also adds Grok 4.1 Fast to CometAPI and increases Grok 4 (07‑09) context to 256k.

  • New Features
    • xAI provider: add grok-4-1-fast-reasoning, grok-4-1-fast-non-reasoning, and grok-4; tool support includes grok‑4‑1; all 256k context.
    • CometAPI: add grok-4-1-fast-reasoning; bump grok-4-0709 context 128k → 256k; update description.
    • Docs/UI/CLI: recommend Grok‑4 with Grok‑4.1 examples; Add Model + CLI support; mark Grok‑4.1 recommended.

Written for commit d71a59c. Summary will update automatically on new commits.

@uinstinct uinstinct requested a review from a team as a code owner November 21, 2025 14:52
@uinstinct uinstinct requested review from sestinj and removed request for a team November 21, 2025 14:52
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Nov 21, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

2 issues found across 3 files

Prompt for AI agents (all 2 issues)

Understand the root cause of the following 2 issues and fix them.


<file name="packages/llm-info/src/providers/xAI.ts">

<violation number="1" location="packages/llm-info/src/providers/xAI.ts:58">
`Grok 4.1 Fast Non Reasoning` reuses the reasoning model id, so consumers will never send requests to the non‑reasoning backend. The `model` string in this block should include `-non-reasoning`.</violation>

<violation number="2" location="packages/llm-info/src/providers/xAI.ts:72">
This addition duplicates the existing `grok-4` model entry defined a few lines above, creating two identical configurations for the same model id. Remove the new block or consolidate so each model id appears only once.</violation>
</file>

Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

Copy link
Collaborator

@RomneyDa RomneyDa left a comment

Choose a reason for hiding this comment

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

See comments, also can we

  • add to the add models form in GUI
  • add it to recommended agent models i.e. make sure it gets multi edit tool
  • add comments about how the model was tested e.g. does it do well in agent mode? both CLI and extensions?
  • make sure it's added to auto tool support
  • update the docs

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Nov 21, 2025
@uinstinct
Copy link
Contributor Author

Also tested grok 4.1 on cn and it worked well. Hence added support for it in the cli

@uinstinct uinstinct requested a review from RomneyDa November 24, 2025 13:32
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 7 files

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="packages/llm-info/src/providers/xAI.ts">

<violation number="1" location="packages/llm-info/src/providers/xAI.ts:58">
`grok-4-1-fast-*` models are unreachable because the preceding `grok-4` regex (`/grok-4/`) matches their names first, so `findLlmInfo` always returns the `grok-4` entry. Move these entries before `grok-4` or tighten the `grok-4` regex (e.g., `/^grok-4$/`) so the new models can actually be selected.</violation>
</file>

Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR

Copy link
Collaborator

@RomneyDa RomneyDa left a comment

Choose a reason for hiding this comment

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

This looks great!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 24, 2025
@RomneyDa RomneyDa merged commit 3b7b21b into continuedev:main Nov 25, 2025
53 of 57 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Nov 25, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 2025
@sestinj
Copy link
Contributor

sestinj commented Nov 25, 2025

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@uinstinct uinstinct deleted the grok-4.1-support branch November 26, 2025 04:45
@sestinj
Copy link
Contributor

sestinj commented Nov 26, 2025

🎉 This PR is included in version 1.36.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor

sestinj commented Dec 4, 2025

🎉 This PR is included in version 1.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm This PR has been approved by a maintainer released size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants