penguineer / HareAIris

A software bridge connecting RabbitMQ to the OpenAI API
MIT License
1 stars 0 forks source link

Introduce and throw a Rate Limit Exception on API calls #10

Closed penguineer closed 3 weeks ago

penguineer commented 3 weeks ago

This pull request introduces a new RateLimitException class to handle rate limiting errors from the OpenAI service and updates the AIChatService to use this new exception. Additionally, it includes comprehensive unit tests for the new exception class.

This PR works towards #8

Exception Handling Enhancements:

New Exception Class:

Unit Tests: