Skip to content

Commit

Permalink
Update chatbotv3.py
Browse files Browse the repository at this point in the history
log
  • Loading branch information
liufufa committed Mar 21, 2023
1 parent 37566b8 commit 142e258
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chatbotv3.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def ask_stream(
)
response_role: str = None
full_response: str = ""
print(response)
for line in response.iter_lines():
if not line:
continue
Expand Down Expand Up @@ -481,4 +482,4 @@ def main():
main()
except KeyboardInterrupt:
print("\nExiting...")
sys.exit()
sys.exit()

0 comments on commit 142e258

Please sign in to comment.