Skip to content

Commit

Permalink
Update aws_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
billytrend-cohere authored Aug 15, 2024
1 parent 5402078 commit 2a52d98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cohere/aws_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def _hook(
response.stream = Streamer(output)

# reset response object to allow for re-reading
del response._content
if hasattr(response, "_content"):
del response._content
response.is_stream_consumed = False
response.is_closed = False

Expand Down

0 comments on commit 2a52d98

Please sign in to comment.