From b28baa692d8df1ccb9ebf50a15f3e00eaaf47802 Mon Sep 17 00:00:00 2001 From: Kye Date: Thu, 12 Oct 2023 14:27:54 -0400 Subject: [PATCH] clean up Former-commit-id: c28ec0cdf017e4ba983088fe41d2dff8cb739f01 --- example.py | 3 ++- swarms/workers/worker.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/example.py b/example.py index 680ba2d7..0e48169e 100644 --- a/example.py +++ b/example.py @@ -1,11 +1,12 @@ from langchain.llms import OpenAIChat from swarms import Worker -llm = OpenAIChat(model_name="gpt-4", openai_api_, temperature=0.5) +llm = OpenAIChat(model_name="gpt-4", openai_api_key="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", temperature=0.5) node = Worker( llm=llm, ai_name="Optimus Prime", + openai_api_key="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", ai_role="Worker in a swarm", external_tools=None, human_in_the_loop=False, diff --git a/swarms/workers/worker.py b/swarms/workers/worker.py index c3bda43b..feebc472 100644 --- a/swarms/workers/worker.py +++ b/swarms/workers/worker.py @@ -1,5 +1,5 @@ import os -from typing import Dict, List, Optional, Union +from typing import Dict, Union import faiss from langchain.docstore import InMemoryDocstore