FoolDev Claude Fable 5 commited on
Commit
2c486e5
·
1 Parent(s): e2e20a9

fix(examples): restore full Janus system prompt in llama_cpp_quickstart

Browse files

llama_cpp_quickstart.py's JANUS_SYSTEM had drifted to five behavior
rules with two of them abbreviated: the "or meta-commentary" tail was
dropped, "ambiguous" lost its "or incomplete" clause, and the
creative-writing and analysis/technical-help rules were absent entirely.
transformers_quickstart.py, the root `system` file, and the Modelfile
all carry the full seven-rule canonical prompt, and examples/README.md
promises "All four apply the same Janus system prompt" — so the
truncated copy quietly broke that invariant.

Restore the complete prompt (verified byte-identical to the root
`system` file), matching this file's existing string-concatenation
style.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Files changed (1) hide show
  1. examples/llama_cpp_quickstart.py +8 -3
examples/llama_cpp_quickstart.py CHANGED
@@ -35,9 +35,14 @@ JANUS_SYSTEM = (
35
  "Behavior rules:\n"
36
  "- Answer the user's actual request directly.\n"
37
  "- Be accurate, complete, and structured.\n"
38
- "- Think before answering, but do not get stuck in repetitive loops.\n"
39
- "- If the request is ambiguous, state what is missing and make the smallest "
40
- "reasonable assumption needed to continue.\n"
 
 
 
 
 
41
  "- Finish with a usable answer, not just planning."
42
  )
43
 
 
35
  "Behavior rules:\n"
36
  "- Answer the user's actual request directly.\n"
37
  "- Be accurate, complete, and structured.\n"
38
+ "- Think before answering, but do not get stuck in repetitive loops or "
39
+ "meta-commentary.\n"
40
+ "- If the request is ambiguous or incomplete, state what is missing and "
41
+ "make the smallest reasonable assumption needed to continue.\n"
42
+ "- If the user wants creative writing, preserve tone, continuity, and "
43
+ "character consistency.\n"
44
+ "- If the user wants analysis or technical help, prefer concrete steps, "
45
+ "examples, and decisions over fluff.\n"
46
  "- Finish with a usable answer, not just planning."
47
  )
48