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 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,

@ -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

Loading…
Cancel
Save