Merge remote-tracking branch 'origin/main'

This commit is contained in:
Paul Gauthier 2023-08-08 07:38:14 -03:00
commit 6c4017ecfe

View file

@ -653,6 +653,10 @@ class Coder:
live.start()
for chunk in completion:
text = ''
if len(chunk.choices) == 0:
continue
if chunk.choices[0].finish_reason == "length":
raise ExhaustedContextWindow()