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

20 lines
370 B

1 year ago
from swarms.models import Anthropic, GooglePalm, OpenAIChat
1 year ago
from swarms.swarms import GodMode
claude = Anthropic(anthropic_api_key="")
palm = GooglePalm(google_api_key="")
1 year ago
gpt = OpenAIChat(openai_api_key="")
1 year ago
1 year ago
# Usage
llms = [
claude,
palm,
gpt
]
1 year ago
god_mode = GodMode(llms)
task = f"What are the biggest risks facing humanity?"
1 year ago
1 year ago
god_mode.print_responses(task)