fix: change default model to opus and fix model ID mismatch

This commit is contained in:
Roo Code 2026-01-12 02:49:06 +00:00
parent 29e7045b81
commit 510cf8fc8a
4 changed files with 10 additions and 10 deletions

View file

@ -157,7 +157,7 @@ Tokens are valid for 90 days. The CLI will prompt you to re-authenticate when yo
| `-y, --yes` | Non-interactive mode: auto-approve all actions | `false` |
| `-k, --api-key <key>` | API key for the LLM provider | From env var |
| `-p, --provider <provider>` | API provider (anthropic, openai, openrouter, etc.) | `openrouter` |
| `-m, --model <model>` | Model to use | `anthropic/claude-sonnet-4.5` |
| `-m, --model <model>` | Model to use | `anthropic/claude-opus-4.5` |
| `-M, --mode <mode>` | Mode to start in (code, architect, ask, debug, etc.) | `code` |
| `-r, --reasoning-effort <effort>` | Reasoning effort level (unspecified, disabled, none, minimal, low, medium, high, xhigh) | `medium` |
| `--ephemeral` | Run without persisting state (uses temporary storage) | `false` |
@ -189,7 +189,7 @@ roo acp [options]
| --------------------------- | -------------------------------------------- | ----------------------------- |
| `-e, --extension <path>` | Path to the extension bundle directory | Auto-detected |
| `-p, --provider <provider>` | API provider (anthropic, openai, openrouter) | `openrouter` |
| `-m, --model <model>` | Model to use | `anthropic/claude-sonnet-4.5` |
| `-m, --model <model>` | Model to use | `anthropic/claude-opus-4.5` |
| `-M, --mode <mode>` | Initial mode (code, architect, ask, debug) | `code` |
| `-k, --api-key <key>` | API key for the LLM provider | From env var |

View file

@ -14,7 +14,7 @@ import { DEFAULT_FLAGS } from "@/types/constants.js"
import { AcpSession, type AcpSessionOptions } from "./session.js"
import { acpLog } from "./logger.js"
import { ModelService, createModelService } from "./model-service.js"
import { type ExtendedNewSessionResponse, type AcpModelState, DEFAULT_MODELS } from "./types.js"
import { type ExtendedNewSessionResponse, type AcpModelState } from "./types.js"
import { envVarMap } from "@/lib/utils/provider.js"
// =============================================================================
@ -223,7 +223,7 @@ export class RooCodeAgent implements acp.Agent {
* Get the current model state.
*/
private async getModelState(): Promise<AcpModelState> {
const currentModelId = this.options.model || DEFAULT_MODELS[0]!.modelId
const currentModelId = this.options.model || DEFAULT_FLAGS.model
return this.modelService.getModelState(currentModelId)
}

View file

@ -55,16 +55,16 @@ export interface ExtendedNewSessionResponse extends acp.NewSessionResponse {
* These map to Roo Code Cloud model tiers.
*/
export const DEFAULT_MODELS: AcpModel[] = [
{
modelId: "anthropic/claude-sonnet-4.5",
name: "Claude Sonnet 4.5",
description: "Best balance of speed and capability",
},
{
modelId: "anthropic/claude-opus-4.5",
name: "Claude Opus 4.5",
description: "Most capable for complex work",
},
{
modelId: "anthropic/claude-sonnet-4.5",
name: "Claude Sonnet 4.5",
description: "Best balance of speed and capability",
},
{
modelId: "anthropic/claude-haiku-4.5",
name: "Claude Haiku 4.5",

View file

@ -3,7 +3,7 @@ import { reasoningEffortsExtended } from "@roo-code/types"
export const DEFAULT_FLAGS = {
mode: "code",
reasoningEffort: "medium" as const,
model: "anthropic/claude-4.5-sonnet",
model: "anthropic/claude-opus-4.5",
provider: "openrouter",
}