Просмотр исходного кода

Supernova (#8175)

Co-authored-by: Chris Estreich <[email protected]>
Matt Rubens 3 месяцев назад
Родитель
Сommit
ac4eda9450
2 измененных файлов с 12 добавлено и 3 удалено
  1. 11 2
      packages/types/src/providers/roo.ts
  2. 1 1
      packages/types/src/single-file-read-models.ts

+ 11 - 2
packages/types/src/providers/roo.ts

@@ -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>

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

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