OrganizingForChange commited on
Commit
f1a331b
·
verified ·
1 Parent(s): b40b1fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -90,8 +90,8 @@ def split_main_and_feedback(llm_output):
90
  Splits the LLM output at the first appearance of a '---' that is surely meant as a feedback divider.
91
  """
92
  import re
93
- # Split at first '---' line
94
- m = re.search(r'(?:^|\n)---(?:\n|$)', llm_output)
95
  if m:
96
  idx = m.start()
97
  main_message = llm_output[:idx].strip()
 
90
  Splits the LLM output at the first appearance of a '---' that is surely meant as a feedback divider.
91
  """
92
  import re
93
+ # Split at first '—' line; this is how ChatGPT-5 renders ---
94
+ m = re.search(r'(?:^|\n)—(?:\n|$)', llm_output)
95
  if m:
96
  idx = m.start()
97
  main_message = llm_output[:idx].strip()