Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 9ec2738

Browse files
committed
fix(roo): update default model to anthropic/claude-sonnet-4.5
The previous default model xai/grok-code-fast-1 is no longer available from the Roo Code Cloud /v1/models endpoint. Updated to anthropic/claude-sonnet-4.5 which is an active, non-deprecated model available through the Vercel provider. Fixes EXT-717
1 parent ede1d29 commit 9ec2738

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

packages/types/src/providers/roo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { ModelInfo } from "../model.js"
66
* Roo Code Cloud is a dynamic provider - models are loaded from the /v1/models API endpoint.
77
* Default model ID used as fallback when no model is specified.
88
*/
9-
export const rooDefaultModelId = "xai/grok-code-fast-1"
9+
export const rooDefaultModelId = "anthropic/claude-sonnet-4.5"
1010

1111
/**
1212
* Empty models object maintained for type compatibility.

src/api/providers/__tests__/roo.spec.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ vitest.mock("../../providers/fetchers/modelCache", () => ({
9393
getModelsFromCache: vitest.fn((provider: string) => {
9494
if (provider === "roo") {
9595
return {
96-
"xai/grok-code-fast-1": {
97-
maxTokens: 16_384,
98-
contextWindow: 262_144,
99-
supportsImages: false,
100-
supportsReasoningEffort: true, // Enable reasoning for tests
96+
"anthropic/claude-sonnet-4.5": {
97+
maxTokens: 8_192,
98+
contextWindow: 200_000,
99+
supportsImages: true,
100+
supportsReasoningEffort: true,
101101
supportsPromptCache: true,
102-
inputPrice: 0,
103-
outputPrice: 0,
102+
inputPrice: 3,
103+
outputPrice: 15,
104104
},
105105
"minimax/minimax-m2:free": {
106106
maxTokens: 32_768,
@@ -141,7 +141,7 @@ describe("RooHandler", () => {
141141

142142
beforeEach(() => {
143143
mockOptions = {
144-
apiModelId: "xai/grok-code-fast-1",
144+
apiModelId: "anthropic/claude-sonnet-4.5",
145145
}
146146
// Set up CloudService mocks for successful authentication
147147
mockHasInstanceFn.mockReturnValue(true)
@@ -410,7 +410,7 @@ describe("RooHandler", () => {
410410

411411
it("should handle any model ID since models are loaded dynamically", () => {
412412
// Test with various model IDs - they should all work since models are loaded dynamically
413-
const testModelIds = ["xai/grok-code-fast-1", "roo/sonic", "deepseek/deepseek-chat-v3.1"]
413+
const testModelIds = ["anthropic/claude-sonnet-4.5", "roo/sonic", "deepseek/deepseek-chat-v3.1"]
414414

415415
for (const modelId of testModelIds) {
416416
const handlerWithModel = new RooHandler({ apiModelId: modelId })

src/api/providers/fetchers/__tests__/roo.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ describe("getRooModels", () => {
2424
object: "list",
2525
data: [
2626
{
27-
id: "xai/grok-code-fast-1",
27+
id: "anthropic/claude-sonnet-4.5",
2828
object: "model",
2929
created: 1234567890,
30-
owned_by: "xai",
31-
name: "Grok Code Fast 1",
30+
owned_by: "anthropic",
31+
name: "Claude Sonnet 4.5",
3232
description: "Fast coding model",
3333
context_window: 262144,
3434
max_tokens: 16384,
@@ -63,7 +63,7 @@ describe("getRooModels", () => {
6363
)
6464

6565
expect(models).toEqual({
66-
"xai/grok-code-fast-1": {
66+
"anthropic/claude-sonnet-4.5": {
6767
maxTokens: 16384,
6868
contextWindow: 262144,
6969
supportsImages: true,

0 commit comments

Comments
 (0)