Open pansusu opened 5 months ago
ChatCompletionChunk(id='chatcmpl-9RcbQpfZm1cThi6f3lw1rjLEbmxcr', choices=[]
the openai 'choices' of chunk maybe empty.
You need to add a check for an empty array.
-
@pansusu thanks for reporting the bug! if you want to contribute, please feel free to open a pull request. I will review and make a new patch release.
Scenario
ChatCompletionChunk(id='chatcmpl-9RcbQpfZm1cThi6f3lw1rjLEbmxcr', choices=[]
the openai 'choices' of chunk maybe empty.
Actual result
You need to add a check for an empty array.
Expected result
-
Acceptance criteria
Contribute