Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions prompting/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ async def forward(self):
if random.random()<0.5 or turn>=1:
break

single_turn_tasks = ['sentiment', 'translation']
if task.name in single_turn_tasks:
break

history = '\n'.join([f"{role}: {message}" for role, message in zip(roles, messages)])

# Use PREVIOUS task context
Expand Down