Skip to content

Make error message for ApiError more user-friendly #240

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

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