Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

penguineer
Copy link
Owner

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:

@penguineer penguineer added the enhancement New feature or request label Nov 5, 2024
@penguineer penguineer requested a review from Copilot November 5, 2024 15:33
@penguineer penguineer self-assigned this Nov 5, 2024
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 suggestion.

@penguineer penguineer force-pushed the rate-limit-exception branch from 6c011ce to d0c98e5 Compare November 5, 2024 15:37
@penguineer penguineer requested a review from Copilot November 5, 2024 15:38
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 suggestion.

@penguineer penguineer force-pushed the rate-limit-exception branch from d0c98e5 to d9a65fb Compare November 5, 2024 15:40
@penguineer penguineer merged commit e1a94c1 into main Nov 5, 2024
1 check passed
@penguineer penguineer deleted the rate-limit-exception branch November 5, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant