feat: configure executor models

This commit is contained in:
liujing
2026-07-20 13:54:11 +08:00
parent c1a982a179
commit 4026f04b93
8 changed files with 396 additions and 14 deletions
+8 -1
View File
@@ -568,7 +568,12 @@ class ReasonixAdapter implements ExecutorAdapter {
const snapshotDirs = [projectsDir];
const beforeSnapshot = new Set(listJsonlFiles(projectsDir, opts.repoRoot));
const args: string[] = ["run", "--dir", opts.repoRoot, prompt];
const args: string[] = [
"run",
"--dir", opts.repoRoot,
...(opts.config.model ? ["--model", opts.config.model] : []),
prompt,
];
const startMs = Date.now();
const logFile = opts.logFilePath;
@@ -619,9 +624,11 @@ class ReasonixAdapter implements ExecutorAdapter {
"run",
"--dir", opts.repoRoot,
"--resume", handle.sessionFilePath,
...(opts.config.model ? ["--model", opts.config.model] : []),
prompt,
];
const startMs = Date.now();
const logFile = opts.logFilePath;
const attemptIndex = deriveAttemptIndex(logFile);