Skip to content

Commit

Permalink
fix: fixed bug where assistant replied before user prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 27, 2023
1 parent 87a26d1 commit 4e78303
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gptme/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ def loop(
not last_msg
or (last_msg.role in ["assistant"])
or last_msg.content == "Interrupted"
or last_msg.pinned
):
inquiry = prompt_user()
if not inquiry:
Expand Down

0 comments on commit 4e78303

Please sign in to comment.