Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
Fix repeated prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Cheong committed Feb 25, 2023
1 parent b4eaea3 commit bae1f5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/revChatGPT/V1.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,9 @@ def ask(
)

raise Error(source="ask", message="Field missing", code=1)

message = line["message"]["content"]["parts"][0]
if message == prompt:
continue
conversation_id = line["conversation_id"]
parent_id = line["message"]["id"]
log.debug("Received message: %s", message)
Expand Down

0 comments on commit bae1f5a

Please sign in to comment.