feat: unify installation model catalog
This commit is contained in:
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user