electblake commited on
Commit
af668f0
·
1 Parent(s): f91a7ad

fix: enforce concise final response contract

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -92,7 +92,14 @@ def generate(
92
  user_content = f"{user_prompt}\n\n<attachment>\n{attachment_text}\n</attachment>"
93
 
94
  messages = [
95
- {"role": "system", "content": system_prompt},
 
 
 
 
 
 
 
96
  {"role": "user", "content": user_content},
97
  ]
98
  inputs = tokenizer.apply_chat_template(
 
92
  user_content = f"{user_prompt}\n\n<attachment>\n{attachment_text}\n</attachment>"
93
 
94
  messages = [
95
+ {
96
+ "role": "system",
97
+ "content": (
98
+ f"{system_prompt}\n\nAfter private reasoning, answer once with only the "
99
+ "requested deliverable. Follow the user's output format exactly. Do not "
100
+ "restate analysis, reasoning, or self-correction in the final answer."
101
+ ),
102
+ },
103
  {"role": "user", "content": user_content},
104
  ]
105
  inputs = tokenizer.apply_chat_template(