Skip to content

Should not crash from running out of money #1297

@endolith

Description

@endolith

Describe the bug

Crashes when OpenAI account runs out of money

Reproduce

Use Open Interpreter when there is little money in account until it runs out.

Expected behavior

Should print the error message without crashing or dropping the conversation, so you can replenish account and continue.

Screenshots

    raise RateLimitError(
litellm.exceptions.RateLimitError: RateLimitError: OpenAIException - Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

Open Interpreter version

0.2.5

Python version

Python 3.12.3

Operating System name and version

Windows 10

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions