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.

Hotfix/global agent manager workaround (#3157)

James Collinsb984f985bc24
diff --git a/autogpt/main.py b/autogpt/main.py
index 7fd32bde2e..52ca845f01 100644
--- a/autogpt/main.py
+++ b/autogpt/main.py
@@ -1,5 +1,4 @@
"""The application entry point. Can be invoked by a CLI or any other front end application."""
-
import logging
import sys
from pathlib import Path
diff --git a/mem.sqlite3 b/mem.sqlite3
new file mode 100644
index 0000000000..029c030e81
Binary files /dev/null and b/mem.sqlite3 differ
diff --git a/tests/test_agent_manager.py b/tests/test_agent_manager.py
index 11da5fd9f5..e02a6a59b2 100644
--- a/tests/test_agent_manager.py
+++ b/tests/test_agent_manager.py
@@ -8,6 +8,9 @@ from tests.utils import requires_api_key
@pytest.fixture
def agent_manager():
+ # Hack, real gross. Singletons are not good times.
+ if AgentManager in AgentManager._instances:
+ del AgentManager._instances[AgentManager]
return AgentManager()
@@ -23,7 +26,7 @@ def prompt():
@pytest.fixture
def model():
- return "gpt-4"
+ return "gpt-3.5-turbo"
@requires_api_key("OPENAI_API_KEY")