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

Enhance Program Performance and Conciseness #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bassel27
Copy link

@bassel27 bassel27 commented May 5, 2023

The following changes were made:

  • Added an exception to check if request limits have been exceeded on Chat GPT.
  • Added deleteCurrentConversation method to delete conversations after having them.



def check_if_request_limit_exceeded(self):
elements = self.browser.find_elements(By.XPATH,'//div[@class="py-2 px-3 border text-gray-600 rounded-md text-sm dark:text-gray-100 border-red-500 bg-red-500/10"]')
Copy link
Owner

@ugorsahin ugorsahin May 7, 2023

Choose a reason for hiding this comment

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

This line can fail easily since the class definition is way too specific, there should be something else to identify the rate limiting

Copy link
Author

Choose a reason for hiding this comment

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

I'm sorry I can't find another solution. You're totally free to modify it or even remove it from the code if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants