mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: use DEFAULT_FLAGS.model for model fallback in agent.ts
This commit is contained in:
parent
4ccca5b88f
commit
e6b1d20bd6
1 changed files with 2 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ import * as acp from "@agentclientprotocol/sdk"
|
|||
import { randomUUID } from "node:crypto"
|
||||
|
||||
import { login, status } from "@/commands/auth/index.js"
|
||||
import { DEFAULT_FLAGS } from "@/types/constants.js"
|
||||
|
||||
import { AcpSession, type AcpSessionOptions } from "./session.js"
|
||||
import { acpLog } from "./logger.js"
|
||||
|
|
@ -207,7 +208,7 @@ export class RooCodeAgent implements acp.Agent {
|
|||
extensionPath: this.options.extensionPath,
|
||||
provider: this.options.provider || "openrouter",
|
||||
apiKey: this.options.apiKey || process.env.OPENROUTER_API_KEY,
|
||||
model: this.options.model || "anthropic/claude-sonnet-4-20250514",
|
||||
model: this.options.model || DEFAULT_FLAGS.model,
|
||||
mode: this.options.mode || "code",
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue