From f26ee7adab17321bf2b0854853ab29e3d228fc04 Mon Sep 17 00:00:00 2001 From: mike dupont Date: Mon, 24 Jun 2024 00:09:30 -0400 Subject: [PATCH] now running --- .env.example | 3 +-- .pyre_configuration | 10 ++++++++++ .watchmanconfig | 1 + example.py | 7 ++++++- swarms/structs/agent.py | 2 +- 5 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .pyre_configuration create mode 100644 .watchmanconfig diff --git a/.env.example b/.env.example index 8ae19111..adf5f7b8 100644 --- a/.env.example +++ b/.env.example @@ -33,7 +33,7 @@ IFTTTKey="your_iftttkey_here" BRAVE_API_KEY="your_brave_api_key_here" SPOONACULAR_KEY="your_spoonacular_key_here" HF_API_KEY="your_huggingface_api_key_here" -USE_TELEMTRY=True +USE_TELEMTRY=No REDIS_HOST= @@ -47,4 +47,3 @@ PSG_CONNECTION_STRING="" GITHUB_USERNAME="" GITHUB_REPO_NAME="" GITHUB_TOKEN="" -USE_TELEMETRY=True \ No newline at end of file diff --git a/.pyre_configuration b/.pyre_configuration new file mode 100644 index 00000000..63476d8b --- /dev/null +++ b/.pyre_configuration @@ -0,0 +1,10 @@ +{ + "site_package_search_strategy": "pep561", + "source_directories": [ + "." + ], + "search_path": [ + ".venv/lib/python3.10/site-packages/", + "./.venv/include/site/python3.10/" + ] +} diff --git a/.watchmanconfig b/.watchmanconfig new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/.watchmanconfig @@ -0,0 +1 @@ +{} diff --git a/example.py b/example.py index cd4fd196..846bffa9 100644 --- a/example.py +++ b/example.py @@ -1,4 +1,6 @@ from swarms import Agent, OpenAIChat +from dotenv import load_dotenv +load_dotenv() import logging import contextlib @@ -24,7 +26,9 @@ agent = Agent( agent_description=( "Generate a transcript for a youtube video on what swarms" " are!" ), - llm=OpenAIChat(), + llm=OpenAIChat( + model_name = "petals-sauerkraut", + ), max_loops="auto", autosave=True, dashboard=False, @@ -34,6 +38,7 @@ agent = Agent( interactive=True, state_save_file_type="json", saved_state_path="transcript_generator.json", + ) # Run the Agent on a task diff --git a/swarms/structs/agent.py b/swarms/structs/agent.py index 8a41fbee..0df79089 100644 --- a/swarms/structs/agent.py +++ b/swarms/structs/agent.py @@ -526,7 +526,7 @@ class Agent(BaseStructure): logger.info(f"Temperature: {self.llm.temperature}") else: # Use a default temperature - self.llm.temperature = 0.7 + self.llm.temperature = 1 except Exception as error: print( colored(f"Error dynamically changing temperature: {error}")