Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions packages/types/src/providers/roo.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { ModelInfo } from "../model.js"

// Roo provider with single model
export type RooModelId = "xai/grok-code-fast-1"
export type RooModelId = "xai/grok-code-fast-1" | "roo/code-supernova"

export const rooDefaultModelId: RooModelId = "xai/grok-code-fast-1"

Expand All @@ -16,4 +15,14 @@ export const rooModels = {
description:
"A reasoning model that is blazing fast and excels at agentic coding, accessible for free through Roo Code Cloud for a limited time. (Note: the free prompts and completions are logged by xAI and used to improve the model.)",
},
"roo/code-supernova": {
maxTokens: 16_384,
contextWindow: 200_000,
supportsImages: true,
supportsPromptCache: true,
inputPrice: 0,
outputPrice: 0,
description:
"A versatile agentic coding stealth model that supports image inputs. 200k context window. (Note: the free prompts and completions are logged by the model provider and used to improve the model.)",
},
} as const satisfies Record<string, ModelInfo>
2 changes: 1 addition & 1 deletion packages/types/src/single-file-read-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
* @returns true if the model should use single file reads
*/
export function shouldUseSingleFileRead(modelId: string): boolean {
return modelId.includes("grok-code-fast-1")
return modelId.includes("grok-code-fast-1") || modelId.includes("code-supernova")
}
Loading