Co-authored-by: Chris Estreich <cestreich@gmail.com>
This commit is contained in:
Matt Rubens 2025-09-19 16:31:54 -04:00 committed by GitHub
parent 07684c017d
commit ac4eda9450
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 3 deletions

View file

@ -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"
@ -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, accessible for free through Roo Code Cloud for a limited time. (Note: the free prompts and completions are logged by the model provider and used to improve the model.)",
},
} as const satisfies Record<string, ModelInfo>

View file

@ -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")
}