Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
harsh-98 pushed a commit to harsh-98/async-openai that referenced this pull request Sep 3, 2025
* Make error message for `APIError` more user-friendly

* Make comment clearer

* Make comment clearer

* Simplify `thiserror` notation
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