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.
20 lines
370 B
20 lines
370 B
1 year ago
|
|
||
1 year ago
|
from swarms.models import Anthropic, GooglePalm, OpenAIChat
|
||
1 year ago
|
from swarms.swarms import GodMode
|
||
1 year ago
|
|
||
|
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
|
||
1 year ago
|
llms = [
|
||
|
claude,
|
||
|
palm,
|
||
|
gpt
|
||
|
]
|
||
1 year ago
|
|
||
|
god_mode = GodMode(llms)
|
||
|
|
||
1 year ago
|
task = f"What are the biggest risks facing humanity?"
|
||
1 year ago
|
|
||
1 year ago
|
god_mode.print_responses(task)
|