openai-php / client

⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.
MIT License
4.56k stars 465 forks source link

Added API error separation by their HTTP codes #440

Open LuckThemAll opened 2 days ago

LuckThemAll commented 2 days ago

What:

Description:

Added separation of API errors by their HTTP codes. This enhancement improves error handling by categorizing errors based on their HTTP status codes, allowing for more precise error management and debugging.

Related:

https://github.com/openai-php/client/issues/402