Skip to content
New issue

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

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

Already on GitHub? # to your account

Make error message for ApiError more user-friendly #240

Merged
merged 4 commits into from
Jul 9, 2024
Merged

Make error message for ApiError more user-friendly #240

merged 4 commits into from
Jul 9, 2024

Conversation

GabrielBianconi
Copy link
Contributor

Fixes #238

I tested with one variation ("too many tokens") and it works fine. Tough to test exhaustively of course.

@GabrielBianconi GabrielBianconi changed the title Make error message for APIError more user-friendly Make error message for ApiError more user-friendly Jul 8, 2024
Copy link
Owner

@64bit 64bit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR, this is better than previous error message!

@64bit 64bit merged commit 0885a26 into 64bit:main Jul 9, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Format OpenAIError::APIError with client-friendly message
2 participants