Add a couple more free models to the Roo provider (#8304)

This commit is contained in:
Matt Rubens 2025-09-25 10:00:40 -04:00 committed by GitHub
parent 798801d582
commit b75f8dd274
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,10 @@
import type { ModelInfo } from "../model.js"
export type RooModelId = "xai/grok-code-fast-1" | "roo/code-supernova"
export type RooModelId =
| "xai/grok-code-fast-1"
| "roo/code-supernova"
| "xai/grok-4-fast"
| "deepseek/deepseek-chat-v3.1"
export const rooDefaultModelId: RooModelId = "xai/grok-code-fast-1"
@ -25,4 +29,24 @@ export const rooModels = {
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.)",
},
"xai/grok-4-fast": {
maxTokens: 30_000,
contextWindow: 2_000_000,
supportsImages: false,
supportsPromptCache: false,
inputPrice: 0,
outputPrice: 0,
description:
"Grok 4 Fast is xAI's latest multimodal model with SOTA cost-efficiency and a 2M token context window. (Note: prompts and completions are logged by xAI and used to improve the model.)",
},
"deepseek/deepseek-chat-v3.1": {
maxTokens: 16_384,
contextWindow: 163_840,
supportsImages: false,
supportsPromptCache: false,
inputPrice: 0,
outputPrice: 0,
description:
"DeepSeek-V3.1 is a large hybrid reasoning model (671B parameters, 37B active). It extends the DeepSeek-V3 base with a two-phase long-context training process, reaching up to 128K tokens, and uses FP8 microscaling for efficient inference.",
},
} as const satisfies Record<string, ModelInfo>