diff --git a/setup.py b/setup.py index 7befd69f..31fb0796 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages setup( name = 'swarms', packages = find_packages(exclude=[]), - version = '0.7.8', + version = '0.7.9', license='MIT', description = 'Swarms - Pytorch', author = 'Kye Gomez', diff --git a/swarms/swarms.py b/swarms/swarms.py index 1f0873b6..3f4cf1d7 100644 --- a/swarms/swarms.py +++ b/swarms/swarms.py @@ -43,7 +43,7 @@ class Swarms: def initialize_vectorstore(self): # Initialize vector store - embeddings_model = OpenAIEmbeddings() + embeddings_model = OpenAIEmbeddings(openai_api_key=self.openai_api_key) embedding_size = 1536 index = faiss.IndexFlatL2(embedding_size) return FAISS(embeddings_model.embed_query, index, InMemoryDocstore({}), {})