This commit is contained in:
roomote-v0[bot] 2026-04-20 23:01:12 +00:00 • committed by GitHub
commit d365083bd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 14 deletions

View file

@ -6,7 +6,7 @@ import type { ModelInfo } from "../model.js"
* Roo Code Cloud is a dynamic provider - models are loaded from the /v1/models API endpoint. * Roo Code Cloud is a dynamic provider - models are loaded from the /v1/models API endpoint.
* Default model ID used as fallback when no model is specified. * Default model ID used as fallback when no model is specified.
*/ */
export const rooDefaultModelId = "xai/grok-code-fast-1" export const rooDefaultModelId = "anthropic/claude-sonnet-4.5"
/** /**
* Empty models object maintained for type compatibility. * Empty models object maintained for type compatibility.

View file

@ -93,14 +93,14 @@ vitest.mock("../../providers/fetchers/modelCache", () => ({
getModelsFromCache: vitest.fn((provider: string) => { getModelsFromCache: vitest.fn((provider: string) => {
if (provider === "roo") { if (provider === "roo") {
return { return {
"xai/grok-code-fast-1": { "anthropic/claude-sonnet-4.5": {
maxTokens: 16_384, maxTokens: 8_192,
contextWindow: 262_144, contextWindow: 200_000,
supportsImages: false, supportsImages: true,
supportsReasoningEffort: true, // Enable reasoning for tests supportsReasoningEffort: true,
supportsPromptCache: true, supportsPromptCache: true,
inputPrice: 0, inputPrice: 3,
outputPrice: 0, outputPrice: 15,
}, },
"minimax/minimax-m2:free": { "minimax/minimax-m2:free": {
maxTokens: 32_768, maxTokens: 32_768,
@ -141,7 +141,7 @@ describe("RooHandler", () => {
beforeEach(() => { beforeEach(() => {
mockOptions = { mockOptions = {
apiModelId: "xai/grok-code-fast-1", apiModelId: "anthropic/claude-sonnet-4.5",
} }
// Set up CloudService mocks for successful authentication // Set up CloudService mocks for successful authentication
mockHasInstanceFn.mockReturnValue(true) mockHasInstanceFn.mockReturnValue(true)
@ -410,7 +410,7 @@ describe("RooHandler", () => {
it("should handle any model ID since models are loaded dynamically", () => { it("should handle any model ID since models are loaded dynamically", () => {
// Test with various model IDs - they should all work since models are loaded dynamically // Test with various model IDs - they should all work since models are loaded dynamically
const testModelIds = ["xai/grok-code-fast-1", "roo/sonic", "deepseek/deepseek-chat-v3.1"] const testModelIds = ["anthropic/claude-sonnet-4.5", "roo/sonic", "deepseek/deepseek-chat-v3.1"]
for (const modelId of testModelIds) { for (const modelId of testModelIds) {
const handlerWithModel = new RooHandler({ apiModelId: modelId }) const handlerWithModel = new RooHandler({ apiModelId: modelId })

View file

@ -24,11 +24,11 @@ describe("getRooModels", () => {
object: "list", object: "list",
data: [ data: [
{ {
id: "xai/grok-code-fast-1", id: "anthropic/claude-sonnet-4.5",
object: "model", object: "model",
created: 1234567890, created: 1234567890,
owned_by: "xai", owned_by: "anthropic",
name: "Grok Code Fast 1", name: "Claude Sonnet 4.5",
description: "Fast coding model", description: "Fast coding model",
context_window: 262144, context_window: 262144,
max_tokens: 16384, max_tokens: 16384,
@ -63,7 +63,7 @@ describe("getRooModels", () => {
) )
expect(models).toEqual({ expect(models).toEqual({
"xai/grok-code-fast-1": { "anthropic/claude-sonnet-4.5": {
maxTokens: 16384, maxTokens: 16384,
contextWindow: 262144, contextWindow: 262144,
supportsImages: true, supportsImages: true,