MCPcopy
hub / github.com/RayVentura/ShortGPT / is_key_missing

Method is_key_missing

gui/ui_tab_video_automation.py:50–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 self.outHTML = None
49
50 def is_key_missing(self):
51 openai_key = ApiKeyManager.get_api_key("OPENAI_API_KEY")
52 gemini_key = ApiKeyManager.get_api_key("GEMINI_API_KEY")
53 if not openai_key and not gemini_key:
54 return "Your Genmini or OpenAI key is missing. Please go to the config tab and enter the API key."
55
56 pexels_api_key = ApiKeyManager.get_api_key("PEXELS_API_KEY")
57 if not pexels_api_key:
58 return "Your Pexels API key is missing. Please go to the config tab and enter the API key."
59
60 def generate_script(self, message, language):
61 return gpt_chat_video.generateScript(message, language)

Callers 1

respondMethod · 0.95

Calls 1

get_api_keyMethod · 0.80

Tested by

no test coverage detected