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/models/anthropic_example.py

10 lines
207 B

5 months ago
import os
from swarms.models import Anthropic
model = Anthropic(anthropic_api_key=os.getenv("ANTHROPIC_API_KEY"))
task = "What is quantum field theory? What are 3 books on the field?"
print(model(task))