Skip to content

Add ProviderError exception and handle missing LLM response #609

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davidlapsleyio
Copy link

@davidlapsleyio davidlapsleyio commented Apr 26, 2025

This commit introduces a new ProviderError exception to handle cases where the LLM provider response lacks the expected 'choices' attribute. It ensures more robust error handling and improves the reliability of the system by catching and raising explicit errors for invalid responses.

Fixes #604

This commit introduces a new ProviderError exception to handle cases where the LLM provider response lacks the expected 'choices' attribute. It ensures more robust error handling and improves the reliability of the system by catching and raising explicit errors for invalid responses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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