fix(utils.py): fix text completion streaming

This commit is contained in:
Krrish Dholakia 2024-03-25 16:47:17 -07:00
parent 9e1e97528d
commit dc2c4af631
2 changed files with 2 additions and 2 deletions

View file

@ -8899,7 +8899,6 @@ class CustomStreamWrapper:
if data_json["choices"][0].get("finish_reason", None):
is_finished = True
finish_reason = data_json["choices"][0]["finish_reason"]
self.sent_last_chunk = True
print_verbose(
f"text: {text}; is_finished: {is_finished}; finish_reason: {finish_reason}"
)