Spaces:
Running
Running
Update open_strawberry.py
Browse files- open_strawberry.py +2 -4
open_strawberry.py
CHANGED
@@ -382,9 +382,7 @@ def manage_conversation(model: str,
|
|
382 |
yield {"role": "assistant", "content": turn_title, "turn_title": True, 'thinking_time': thinking_time,
|
383 |
'total_thinking_time': total_thinking_time}
|
384 |
|
385 |
-
chat_history.append(
|
386 |
-
{"role": "user",
|
387 |
-
"content": [{"type": "text", "text": prompt, "cache_control": {"type": "ephemeral"}}]})
|
388 |
chat_history.append({"role": "assistant", "content": response_text})
|
389 |
|
390 |
# Adjusted to only check final answer when trying_final is True
|
@@ -497,4 +495,4 @@ Remember to compensate for your flaws:
|
|
497 |
if __name__ == '__main__':
|
498 |
from src.cli import go_cli
|
499 |
|
500 |
-
go_cli()
|
|
|
382 |
yield {"role": "assistant", "content": turn_title, "turn_title": True, 'thinking_time': thinking_time,
|
383 |
'total_thinking_time': total_thinking_time}
|
384 |
|
385 |
+
chat_history.append({"role": "user", "content": prompt})
|
|
|
|
|
386 |
chat_history.append({"role": "assistant", "content": response_text})
|
387 |
|
388 |
# Adjusted to only check final answer when trying_final is True
|
|
|
495 |
if __name__ == '__main__':
|
496 |
from src.cli import go_cli
|
497 |
|
498 |
+
go_cli()
|