Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Fixes openai key not set error.

Toran Bruce Richardsaed8c5b46942
diff --git a/scripts/config.py b/scripts/config.py
index 4c892b8f28..844b1e2feb 100644
--- a/scripts/config.py
+++ b/scripts/config.py
@@ -44,7 +44,8 @@ class Config(metaclass=Singleton):
print(f"openai_api_key: {self.openai_api_key}")
print(f"elevenlabs_api_key: {self.elevenlabs_api_key}")
-
+ # Initialize the OpenAI API client
+ openai.api_key = self.openai_api_key
def set_continuous_mode(self, value: bool):