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.pyindex 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 loggingimport sysfrom pathlib import Pathdiff --git a/mem.sqlite3 b/mem.sqlite3new file mode 100644index 0000000000..029c030e81Binary files /dev/null and b/mem.sqlite3 differdiff --git a/tests/test_agent_manager.py b/tests/test_agent_manager.pyindex 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.fixturedef 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.fixturedef model():- return "gpt-4"+ return "gpt-3.5-turbo"@requires_api_key("OPENAI_API_KEY")