Skip to content
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

When the http code is not equal to 200, an exception need thrown #60

Closed
zyz954489346 opened this issue Mar 2, 2023 · 3 comments
Closed

Comments

@zyz954489346
Copy link

Describe the feature or improvement you're requesting

Need a way to catch http error,
like this fix in OpenAI.php
image

Additional context

No response

@zyz954489346
Copy link
Author

My English is not very good, hope you can understand my meaning :(..

@orhanerday
Copy link
Owner

Ok I will hold this issue, if we got a few more request about this feature I will implement it.

Now I closing the issue FYI.

@zyz954489346
Copy link
Author

If the http exception cannot be caught, then the error code of the API cannot be obtained.
So this change is really necessary.
see https://platform.openai.com/docs/guides/error-codes/api-errors

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

No branches or pull requests

2 participants