Use clients error type when figuring out the errors.

Created on 25 February 2025, about 2 months ago

Problem/Motivation

Currently we are looking at the error message we get back from the LLM and try to map that to our exceptions, however the client has a better method for it here: https://github.com/openai-php/client/blob/main/src/Exceptions/ErrorExcep...

We should map to this instead.

Proposed resolution

  • Map to the different Exceptions to different error types "insufficient_quota" etc. in OpenAI's responses.
  • Do it in one method that can be overriden.
📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany marcus_johansson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024