Review syntax after model without typo whitelist
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (live) / review (push) Successful in 53s

This commit is contained in:
Codex Agent
2026-11-28 22:26:14 +00:00
parent 1d20412bd6
commit 0bffbdf4bd
19 changed files with 222 additions and 261 deletions
+2 -2
View File
@@ -31,8 +31,8 @@ def propose(source):
raise FileNotFoundError("llama-completion executable missing")
if _sha256(executable) != lock["runtime_entrypoint_sha256"]:
raise ValueError("llama-completion checksum mismatch")
if source not in ('print("hello"', 'print("hello"\n'):
raise ValueError("real-model adapter only supports the hello fixture")
if len(source.encode("utf-8")) > 1024 or "\n" in source.rstrip("\n"):
raise ValueError("demo source must be one bounded line")
prompt = lock["prompt_template"].format(source_line=source.rstrip("\n"))
command = [str(executable), "-m", str(model), "-p", prompt,
"-n", str(lock["max_output_tokens"]), "-c", str(lock["context_tokens"]),