jefmon01 commited on
Commit
353454e
·
1 Parent(s): 0f04430

Update space

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -144,8 +144,7 @@ def build_messages(history: list[dict], message: str, briefing: str | None, turn
144
  msgs.append({
145
  "role": "system",
146
  # Use concatenation to avoid any accidental multiline f-string issues
147
- "content": "Pre-game briefing (user-provided):
148
- " + briefing[:4000]
149
  })
150
 
151
  for m in history or []:
 
144
  msgs.append({
145
  "role": "system",
146
  # Use concatenation to avoid any accidental multiline f-string issues
147
+ "content": "Pre-game briefing (user-provided):\n" + (briefing[:4000] if isinstance(briefing, str) else "")
 
148
  })
149
 
150
  for m in history or []: