From dae38565289f39ecc7207cf2ae34b11a924c2b67 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 12 Oct 2024 23:31:49 -0400 Subject: [PATCH] [EXAMPLES CLEANUP] --- example.py | 9 +++------ .../structs/swarms/hiearchical_swarm/agent_creator.py | 0 2 files changed, 3 insertions(+), 6 deletions(-) rename agent_creator.py => examples/structs/swarms/hiearchical_swarm/agent_creator.py (100%) diff --git a/example.py b/example.py index 765fbac6..ab77e25b 100644 --- a/example.py +++ b/example.py @@ -10,14 +10,11 @@ from dotenv import load_dotenv load_dotenv() # Get the OpenAI API key from the environment variable -api_key = os.getenv("GROQ_API_KEY") +api_key = os.getenv("OPENAI_API_KEY") -# Model +# Create an instance of the OpenAIChat class model = OpenAIChat( - openai_api_base="https://api.groq.com/openai/v1", - openai_api_key=api_key, - model_name="llama-3.1-70b-versatile", - temperature=0.1, + openai_api_key=api_key, model_name="gpt-4o-mini", temperature=0.1 ) # Initialize the agent diff --git a/agent_creator.py b/examples/structs/swarms/hiearchical_swarm/agent_creator.py similarity index 100% rename from agent_creator.py rename to examples/structs/swarms/hiearchical_swarm/agent_creator.py