From a4a7ec44dea5f017cadc98562d3f7221fb988e67 Mon Sep 17 00:00:00 2001 From: Kye Date: Thu, 6 Jul 2023 19:11:59 -0400 Subject: [PATCH] setup 7.8 --- setup.py | 2 +- swarms/tools/agent_tools.py | 40 ++++++++++++++++++------------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/setup.py b/setup.py index c938dcbc..7befd69f 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.7', + version = '0.7.8', license='MIT', description = 'Swarms - Pytorch', author = 'Kye Gomez', diff --git a/swarms/tools/agent_tools.py b/swarms/tools/agent_tools.py index 9b97e4a0..47213501 100644 --- a/swarms/tools/agent_tools.py +++ b/swarms/tools/agent_tools.py @@ -36,24 +36,24 @@ from langchain.tools import tool ROOT_DIR = "./data/" # ---------- Tools ---------- -openai_api_key = os.environ["OPENAI_API_KEY"] -llm = ChatOpenAI(model_name="gpt-4", temperature=1.0, openai_api_key=openai_api_key) - -worker_tools = [ - DuckDuckGoSearchRun(), - WriteFileTool(root_dir=ROOT_DIR), - ReadFileTool(root_dir=ROOT_DIR), - process_csv, +# openai_api_key = os.environ["OPENAI_API_KEY"] +# llm = ChatOpenAI(model_name="gpt-4", temperature=1.0, openai_api_key=openai_api_key) + +# worker_tools = [ +# DuckDuckGoSearchRun(), +# WriteFileTool(root_dir=ROOT_DIR), +# ReadFileTool(root_dir=ROOT_DIR), +# process_csv, - WebpageQATool(qa_chain=load_qa_with_sources_chain(llm)), - - # Tool(name='terminal', func=Terminal.execute, description='Operates a terminal'), - # Tool(name='code_writer', func=CodeWriter(), description='Writes code'), - # Tool(name='code_editor', func=CodeEditor(), description='Edits code'),# -] - -# ---------- Vector Store ---------- -embeddings_model = OpenAIEmbeddings() -embedding_size = 1536 -index = faiss.IndexFlatL2(embedding_size) -vectorstore = FAISS(embeddings_model.embed_query, index, InMemoryDocstore({}), {}) \ No newline at end of file +# WebpageQATool(qa_chain=load_qa_with_sources_chain(llm)), + +# # Tool(name='terminal', func=Terminal.execute, description='Operates a terminal'), +# # Tool(name='code_writer', func=CodeWriter(), description='Writes code'), +# # Tool(name='code_editor', func=CodeEditor(), description='Edits code'),# +# ] + +# # ---------- Vector Store ---------- +# embeddings_model = OpenAIEmbeddings() +# embedding_size = 1536 +# index = faiss.IndexFlatL2(embedding_size) +# vectorstore = FAISS(embeddings_model.embed_query, index, InMemoryDocstore({}), {}) \ No newline at end of file