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

14 lines
275 B

5 months ago
from swarms.models.popular_llms import Fireworks
import os
# Initialize the model
llm = Fireworks(
temperature=0.2,
max_tokens=3500,
openai_api_key=os.getenv("FIREWORKS_API_KEY"),
)
# Run the model
response = llm("What is the meaning of life?")
print(response)