Spaces:
Paused
Paused
Update space
Browse files
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 []:
|