Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
liufufa committed Mar 21, 2023
1 parent 2994788 commit c940462
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 @@ -118,8 +118,9 @@ def ask_stream(
},
stream=True,
)
print(response)
print('resp=' + response)
if response.status_code != 200:
print('response error')
raise Exception(
f"Error: {response.status_code} {response.reason} {response.text}",
)
Expand Down

0 comments on commit c940462

Please sign in to comment.