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.
update weaviate.py for weaviate compatibility (#2985)
non-adjective4906e3d7ef2f
diff --git a/autogpt/memory/weaviate.py b/autogpt/memory/weaviate.pyindex 5408e9a97a..0225ae0450 100644--- a/autogpt/memory/weaviate.py+++ b/autogpt/memory/weaviate.py@@ -51,6 +51,7 @@ class WeaviateMemory(MemoryProviderSingleton):# weaviate uses capitalised index names# The python client uses the following code to format# index names before the corresponding class is created+ index = index.replace("-", "_")if len(index) == 1:return index.capitalize()return index[0].capitalize() + index[1:]