Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: openai error: list index out of range #198

Open
1 task done
pansusu opened this issue May 22, 2024 · 1 comment
Open
1 task done

bug: openai error: list index out of range #198

pansusu opened this issue May 22, 2024 · 1 comment
Labels
bug Something isn't working openai

Comments

@pansusu
Copy link

pansusu commented May 22, 2024

Scenario

ChatCompletionChunk(id='chatcmpl-9RcbQpfZm1cThi6f3lw1rjLEbmxcr', choices=[]

the openai 'choices' of chunk maybe empty.

Actual result

image You need to add a check for an empty array.

Expected result

Acceptance criteria

  • [ ]

Contribute

  • Yes, I can fix this bug and open a PR
@pansusu pansusu added the bug Something isn't working label May 22, 2024
@ajndkr
Copy link
Owner

ajndkr commented May 22, 2024

@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.

@ajndkr ajndkr added the openai label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working openai
Projects
None yet
Development

No branches or pull requests

2 participants