Former-commit-id: c28ec0cdf0
discord-bot-framework
Kye 1 year ago
parent 19c28a1e7d
commit b28baa692d

@ -1,11 +1,12 @@
from langchain.llms import OpenAIChat from langchain.llms import OpenAIChat
from swarms import Worker 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( node = Worker(
llm=llm, llm=llm,
ai_name="Optimus Prime", ai_name="Optimus Prime",
openai_api_key="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",
ai_role="Worker in a swarm", ai_role="Worker in a swarm",
external_tools=None, external_tools=None,
human_in_the_loop=False, human_in_the_loop=False,

@ -1,5 +1,5 @@
import os import os
from typing import Dict, List, Optional, Union from typing import Dict, Union
import faiss import faiss
from langchain.docstore import InMemoryDocstore from langchain.docstore import InMemoryDocstore

Loading…
Cancel
Save