lanarky
lanarky copied to clipboard
bug: openai error: list index out of range
Scenario
ChatCompletionChunk(id='chatcmpl-9RcbQpfZm1cThi6f3lw1rjLEbmxcr', choices=[]
the openai 'choices' of chunk maybe empty.
Actual result
Expected result
Acceptance criteria
- [ ]
Contribute
- [X] Yes, I can fix this bug and open a PR
@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.