Przeglądaj źródła

feat: add --variant flag to run command (#6805)

Co-authored-by: shuv <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
shuv 1 miesiąc temu
rodzic
commit
72cef0d9e7
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      packages/opencode/src/cli/cmd/run.ts

+ 6 - 0
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 }],
         })
       }