Fix issue with last line not being printed
This commit is contained in:
parent
fb57930c69
commit
c0a9377849
|
|
@ -132,7 +132,7 @@ def chat(message, stream=True):
|
||||||
if not stream:
|
if not stream:
|
||||||
result = completion['message']['content']
|
result = completion['message']['content']
|
||||||
if stream:
|
if stream:
|
||||||
print()
|
print(large_text, flush=True)
|
||||||
history.append({"role": 'assistant', 'content': result})
|
history.append({"role": 'assistant', 'content': result})
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue