feat: unify installation model catalog

This commit is contained in:
Codex
2026-09-02 18:45:33 +02:00
parent ae053961a3
commit 7b7927bfe5
169 changed files with 3696 additions and 4572 deletions
+9 -8
View File
@@ -228,14 +228,15 @@ class PiEvidenceRestructurer:
"--no-skills",
"--extension", str(self._json_mode_extension),
]
for option, environment_name in (
("--provider", "PI_PROVIDER"),
("--model", "PI_MODEL"),
("--thinking", "PI_THINKING"),
):
value = os.environ.get(environment_name)
if value:
argv.extend((option, value))
canonical_model = os.environ.get("THT_DEFAULT_SESSION_MODEL")
if canonical_model:
provider, separator, model = canonical_model.partition("/")
if separator != "/" or not provider or not model:
raise EvidencePreparationError("pi_restructure_failed", request.source_file)
argv.extend(("--provider", provider, "--model", model))
thinking = os.environ.get("PI_THINKING")
if thinking:
argv.extend(("--thinking", thinking))
argv.extend((
"--system-prompt", system_prompt,
f"@{request_path}",