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

17 lines
297 B

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