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/godmode.py

22 lines
316 B

from swarms.swarms import GodMode
from swarms.models import OpenAIChat
api_key = ""
llm = OpenAIChat(
openai_api_key=api_key
)
llms = [
llm,
llm,
llm
]
god_mode = GodMode(llms)
task = 'Generate a 10,000 word blog on health and wellness.'
out = god_mode.run(task)
god_mode.print_responses(task)