diff options
| author | shuv <[email protected]> | 2026-01-03 22:08:34 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-04 00:08:34 -0600 |
| commit | 72cef0d9e78ac771cd9044a3fe9f5a3d6f3db8b8 (patch) | |
| tree | 3acb4f3930111e73e880b2fef2902f0cb175321d | |
| parent | d3fd6d1a106a9f5ffa0707aa97dcb19a979fdc56 (diff) | |
| download | opencode-72cef0d9e78ac771cd9044a3fe9f5a3d6f3db8b8.tar.gz opencode-72cef0d9e78ac771cd9044a3fe9f5a3d6f3db8b8.zip | |
feat: add --variant flag to run command (#6805)
Co-authored-by: shuv <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
| -rw-r--r-- | packages/opencode/src/cli/cmd/run.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/opencode/src/cli/cmd/run.ts b/packages/opencode/src/cli/cmd/run.ts index 876b64bd8..bd9d29b4d 100644 --- a/packages/opencode/src/cli/cmd/run.ts +++ b/packages/opencode/src/cli/cmd/run.ts @@ -87,6 +87,10 @@ export const RunCommand = cmd({ type: "number", describe: "port for the local server (defaults to random port if no value provided)", }) + .option("variant", { + type: "string", + describe: "model variant (provider-specific reasoning effort, e.g., high, max, minimal)", + }) }, handler: async (args) => { let message = [...args.message, ...(args["--"] || [])] @@ -254,6 +258,7 @@ export const RunCommand = cmd({ model: args.model, command: args.command, arguments: message, + variant: args.variant, }) } else { const modelParam = args.model ? Provider.parseModel(args.model) : undefined @@ -261,6 +266,7 @@ export const RunCommand = cmd({ sessionID, agent: resolvedAgent, model: modelParam, + variant: args.variant, parts: [...fileParts, { type: "text", text: message }], }) } |
