Skip to content

Commit

Permalink
Merge pull request #6 from ErykDarnowski/fix/5/empty-conversations-be…
Browse files Browse the repository at this point in the history
…ing-added
  • Loading branch information
ErykDarnowski authored Jan 22, 2024
2 parents 51417da + 4f73b21 commit 1c4bcfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion __main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def main():

# making sure that the convo won't start with an answer to a non existant prompt
if (not curr_is_sender and is_sender(transcript[i + 1])):
convo_list.append(convo)
if (len(convo["messages"]) > 1):
convo_list.append(convo)
convo = { "messages": [ config ] }


Expand Down

0 comments on commit 1c4bcfc

Please sign in to comment.