now running

pull/482/head
mike dupont 1 year ago
parent 90c5b5aea3
commit f26ee7adab

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

@ -0,0 +1,10 @@
{
"site_package_search_strategy": "pep561",
"source_directories": [
"."
],
"search_path": [
".venv/lib/python3.10/site-packages/",
"./.venv/include/site/python3.10/"
]
}

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

@ -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}")

Loading…
Cancel
Save