You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/example.py

15 lines
322 B

from swarms.models import OpenAIChat
from swarms.structs import Flow
# Initialize the language model
llm = OpenAIChat(
temperature=0.5,
)
## Initialize the workflow
flow = Flow(llm=llm, max_loops=1, dashboard=True)
# Run the workflow on a task
out = flow.run("Generate a 10,000 word blog on health and wellness.")