Skip to content

Catch rate limiting errors #26

Description

@scottyeager

Might be nice to catch errors like this:

Error: error getting completion: failed to get completion: POST "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions": 429 Too Many Requests [{
  "error": {
    "code": 429,
    "message": "Resource has been exhausted (e.g. check quota).",
    "status": "RESOURCE_EXHAUSTED"
  }
}

And display a nicer error:

# Yer getting rate limited, mate

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions