fix: pass --model and its value as two argv elements
pi 1.5.2 rejects --model=<id> as an unknown option (live run 3838). The probe already refuses ids starting with "-", so the id cannot be read as an option. A test now asserts no option in pi's argv uses the = form. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7095db060e
commit
f75f3dddf2
3 files changed
+10
-5
No files matched your search
@@ -179,8 +179,10 @@ def models_config(base_url: str, model: str) -> dict:
|
||||
def pi_argv(binary: str, model: str, task_file: Path,
|
||||
system_prompt_file: Path | None) -> list[str]:
|
||||
"""The pi command line. The task goes in as an @file, so a long prompt never lands
|
||||
in argv; the key is never in it."""
|
||||
argv = [binary, "-p", "--mode", "json", "--provider", PROVIDER, f"--model={model}",
|
||||
in argv; the key is never in it. Each option and its value are separate elements:
|
||||
pi 1.5.2 rejects `--model=<id>` as an unknown option. probe() refuses a model id
|
||||
starting with `-`, so the id cannot be read as an option."""
|
||||
argv = [binary, "-p", "--mode", "json", "--provider", PROVIDER, "--model", model,
|
||||
"--thinking", THINKING, "--tools", TOOLS, *ISOLATION_FLAGS]
|
||||
if system_prompt_file is not None:
|
||||
argv += ["--append-system-prompt", str(system_prompt_file)]
|
||||
|
||||
Reference in new issue
Block a user