eidolon-ai / eidolon

The first AI Agent Server, Eidolon is a pluggable Agent SDK and enterprise ready, deployment server for Agentic applications
https://www.eidolonai.com/
Apache License 2.0
292 stars 32 forks source link

[ problem ] OpenAI RateLimitError when account=$0 #870

Closed flynntsang closed 1 week ago

flynntsang commented 1 month ago

Describe the problem When my OpenAI billing account reaches $0, I get a RateLimitError, when in fact my account balance is zero.

To Reproduce Steps to reproduce the behavior:

  1. In OpenAI, create a new, unfunded account, or run your account down to zero
  2. Create a new conversation
  3. See error

Error APU Error: RateLimitError while processing request

Error An error occurred. Please try starting a new conversation.

Image

Expected behavior PaymentRequiredError, which corresponds to an HTTP 402 status code: "402 Payment Required".

LukeLalor commented 3 weeks ago

Action Item: Let's make it very clear that we are getting this response back from openAI (or other llm providers)

Received Error from OpenAI: { request.status_code } { request.human_readable_status_code }
{ request.body }

todo, preview request.body to see if this is reasonable to expose to the user