This commit is contained in:
roomote-v0[bot] 2026-04-28 09:21:22 -07:00 committed by GitHub
commit 4577ea2669
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.
* 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.

View file

@ -93,14 +93,14 @@ vitest.mock("../../providers/fetchers/modelCache", () => ({
getModelsFromCache: vitest.fn((provider: string) => {
if (provider === "roo") {
return {
"xai/grok-code-fast-1": {
maxTokens: 16_384,
contextWindow: 262_144,
supportsImages: false,
supportsReasoningEffort: true, // Enable reasoning for tests
"anthropic/claude-sonnet-4.5": {
maxTokens: 8_192,
contextWindow: 200_000,
supportsImages: true,
supportsReasoningEffort: true,
supportsPromptCache: true,
inputPrice: 0,
outputPrice: 0,
inputPrice: 3,
outputPrice: 15,
},
"minimax/minimax-m2:free": {
maxTokens: 32_768,
@ -141,7 +141,7 @@ describe("RooHandler", () => {
beforeEach(() => {
mockOptions = {
apiModelId: "xai/grok-code-fast-1",
apiModelId: "anthropic/claude-sonnet-4.5",
}
// Set up CloudService mocks for successful authentication
mockHasInstanceFn.mockReturnValue(true)
@ -410,7 +410,7 @@ describe("RooHandler", () => {
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
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) {
const handlerWithModel = new RooHandler({ apiModelId: modelId })

View file

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