Skip to content

🐛 [Bug]: Error when automating the creation of shorts #153

@tomasalias

Description

@tomasalias

What happened?

I've provided all the API keys.

Image

Image

What type of browser are you seeing the problem on?

Chrome

What type of Operating System are you seeing the problem on?

Windows

Python Version

Python 3.12.3

Application Version

v0.3.0

Expected Behavior

I expected to get my shorts.

Error Message

12 Current step (12 / 12) : _addYoutubeMetadata 11
Step 12 _addYoutubeMetadata
Error communicating with OpenAI: Error code: 429 - [{'error': {'code': 429, 'message': 'Resource has been exhausted (e.g. check quota).', 'status': 'RESOURCE_EXHAUSTED'}}]
Error communicating with OpenAI: Error code: 429 - [{'error': {'code': 429, 'message': 'Resource has been exhausted (e.g. check quota).', 'status': 'RESOURCE_EXHAUSTED'}}]
Error communicating with OpenAI: Error code: 429 - [{'error': {'code': 429, 'message': 'Resource has been exhausted (e.g. check quota).', 'status': 'RESOURCE_EXHAUSTED'}}]
Error communicating with OpenAI: Error code: 429 - [{'error': {'code': 429, 'message': 'Resource has been exhausted (e.g. check quota).', 'status': 'RESOURCE_EXHAUSTED'}}]
Error communicating with OpenAI: Error code: 429 - [{'error': {'code': 429, 'message': 'Resource has been exhausted (e.g. check quota).', 'status': 'RESOURCE_EXHAUSTED'}}]
Error communicating with OpenAI: Error code: 429 - [{'error': {'code': 429, 'message': 'Resource has been exhausted (e.g. check quota).', 'status': 'RESOURCE_EXHAUSTED'}}]
Error communicating with OpenAI: Error code: 429 - [{'error': {'code': 429, 'message': 'Resource has been exhausted (e.g. check quota).', 'status': 'RESOURCE_EXHAUSTED'}}]
Error communicating with OpenAI: Error code: 429 - [{'error': {'code': 429, 'message': 'Resource has been exhausted (e.g. check quota).', 'status': 'RESOURCE_EXHAUSTED'}}]
Error communicating with OpenAI: Error code: 429 - [{'error': {'code': 429, 'message': 'Resource has been exhausted (e.g. check quota).', 'status': 'RESOURCE_EXHAUSTED'}}]
Error   File "/app/gui/ui_tab_short_automation.py", line 102, in create_short
    for step_num, step_info in shortEngine.makeContent():
  File "/app/shortGPT/engine/abstract_content_engine.py", line 74, in makeContent
    self.stepDict[currentStep]()
  File "/app/shortGPT/engine/content_short_engine.py", line 159, in _addYoutubeMetadata
    self._db_yt_title, self._db_yt_description = gpt_yt.generate_title_description_dict(self._db_script)
  File "/app/shortGPT/gpt/gpt_yt.py", line 10, in generate_title_description_dict
    result = gpt_utils.llm_completion(chat_prompt=chat, system=system, temp=1)
  File "/app/shortGPT/gpt/gpt_utils.py", line 119, in llm_completion
    raise Exception(f"Error communicating with LLM Endpoint Completion errored more than error: {error}")

Code to produce this issue.

Screenshots/Assets/Relevant links

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions