Skip to content

Fix #604 Chat Completion model raises runtime error when response.choices is empty #935

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

Merged
merged 3 commits into from
Jun 25, 2025

Conversation

seratch
Copy link
Member

@seratch seratch commented Jun 25, 2025

This pull request resolves #604; just checking the existence of the data and avoiding the runtime exception should make sense.

@seratch seratch requested a review from rm-openai June 25, 2025 01:15
@seratch seratch added bug Something isn't working feature:chat-completions labels Jun 25, 2025
@seratch
Copy link
Member Author

seratch commented Jun 25, 2025

now this is ready for reviews

@seratch seratch force-pushed the issue-604-chat-completions-runtime-error branch from 951b9c7 to 403aeea Compare June 25, 2025 23:26
@seratch seratch merged commit 94f8035 into main Jun 25, 2025
5 checks passed
@seratch seratch deleted the issue-604-chat-completions-runtime-error branch June 25, 2025 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature:chat-completions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: SDK crashes when choices is None (provider-error payload)
2 participants