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/model_router_example.py

12 lines
279 B

import os
from swarms.structs.model_router import ModelRouter
from dotenv import load_dotenv
load_dotenv()
model_router = ModelRouter(api_key=os.getenv("OPENAI_API_KEY"))
model_router.run(
"What are the best ways to analyze macroeconomic data? Use openai gpt-4o models"
)