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

openai.error.RateLimitError: #2

Open
merolaika opened this issue Nov 18, 2023 · 2 comments
Open

openai.error.RateLimitError: #2

merolaika opened this issue Nov 18, 2023 · 2 comments

Comments

@merolaika
Copy link

merolaika commented Nov 18, 2023

Hello, i have limit on open ai but it will error.. i Put my open api key into .env file and my video time 04:11 long

(reels-clips-automator) C:\ai\reels-clips-automator>python reelsfy.py -v https://www.youtube.com/watch?v=Cuptv7-A4p0
[WinError 183] Cannot create an existing file: 'results'
[WinError 123] Incorrect file name, directory name or volume label syntax: 'results/https://www.youtube.com/watch?v=Cuptv7-A4p0'

but this file does not already exist and gives this error when first created

Traceback (most recent call last): File "C:\ai\reels-clips-automator\reelsfy.py", line 313, in <module> __main__() File "C:\ai\reels-clips-automator\reelsfy.py", line 285, in __main__ viral_segments = generate_viral(transcript) File "C:\ai\reels-clips-automator\reelsfy.py", line 198, in generate_viral response = openai.ChatCompletion.create( File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_resources\chat_completion.py", line 25, in create return super().create(*args, **kwargs) File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create response, _, api_key = requestor.request( File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_requestor.py", line 298, in request resp, got_stream = self._interpret_response(result, stream) File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_requestor.py", line 700, in _interpret_response self._interpret_response_line( File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_requestor.py", line 765, in _interpret_response_line raise self.handle_error_response( openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details.

@MinightDev
Copy link

Hello, i have limit on open ai but it will error.. i Put my open api key into .env file and my video time 04:11 long

(reels-clips-automator) C:\ai\reels-clips-automator>python reelsfy.py -v https://www.youtube.com/watch?v=Cuptv7-A4p0 [WinError 183] Cannot create an existing file: 'results' [WinError 123] Incorrect file name, directory name or volume label syntax: 'results/https://www.youtube.com/watch?v=Cuptv7-A4p0'

but this file does not already exist and gives this error when first created

Traceback (most recent call last): File "C:\ai\reels-clips-automator\reelsfy.py", line 313, in <module> __main__() File "C:\ai\reels-clips-automator\reelsfy.py", line 285, in __main__ viral_segments = generate_viral(transcript) File "C:\ai\reels-clips-automator\reelsfy.py", line 198, in generate_viral response = openai.ChatCompletion.create( File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_resources\chat_completion.py", line 25, in create return super().create(*args, **kwargs) File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create response, _, api_key = requestor.request( File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_requestor.py", line 298, in request resp, got_stream = self._interpret_response(result, stream) File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_requestor.py", line 700, in _interpret_response self._interpret_response_line( File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_requestor.py", line 765, in _interpret_response_line raise self.handle_error_response( openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details.

Maybe this script is written to only work on linux. For the openai error you need a new api key because you exceeded your current quota

@eddieoz
Copy link
Owner

eddieoz commented May 13, 2024

Maybe it is needed to create a new account or to subscribe to their service.

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

No branches or pull requests

3 participants