Skip to content

Commit ac4eda9

Browse files
mrubenscte
andauthored
Supernova (#8175)
Co-authored-by: Chris Estreich <[email protected]>
1 parent 07684c0 commit ac4eda9

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

packages/types/src/providers/roo.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { ModelInfo } from "../model.js"
22

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

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

@@ -16,4 +15,14 @@ export const rooModels = {
1615
description:
1716
"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.)",
1817
},
18+
"roo/code-supernova": {
19+
maxTokens: 16_384,
20+
contextWindow: 200_000,
21+
supportsImages: true,
22+
supportsPromptCache: true,
23+
inputPrice: 0,
24+
outputPrice: 0,
25+
description:
26+
"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.)",
27+
},
1928
} as const satisfies Record<string, ModelInfo>

packages/types/src/single-file-read-models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
* @returns true if the model should use single file reads
1111
*/
1212
export function shouldUseSingleFileRead(modelId: string): boolean {
13-
return modelId.includes("grok-code-fast-1")
13+
return modelId.includes("grok-code-fast-1") || modelId.includes("code-supernova")
1414
}

0 commit comments

Comments
 (0)