Problem/Motivation

Currently we do not match the error message from LiteLLM, because we inherit the OpenAI chat method.

We should copy and fix the error messages that trigger AiQuotaException.

This is not nice way of extending it, but this is fixed in 1.2.0.

Steps to reproduce

Reach the quota
You still get a generic error

Proposed resolution

Copy the chat method.
Just change the part of the error message.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

marcus_johansson created an issue. See original summary.

marcus_johansson’s picture

Status: Active » Needs review
dan2k3k4’s picture

Assigned: Unassigned » dan2k3k4
dan2k3k4’s picture

Assigned: dan2k3k4 » Unassigned
Status: Needs review » Reviewed & tested by the community

Code reviewed, looks good to me

dan2k3k4’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

dan2k3k4’s picture

Status: Fixed » Closed (fixed)