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.
15 lines
455 B
15 lines
455 B
import os
|
|
import json
|
|
from dotenv import load_dotenv
|
|
from swarms_client import SwarmsClient
|
|
|
|
load_dotenv()
|
|
|
|
client = SwarmsClient(api_key=os.getenv("SWARMS_API_KEY"))
|
|
|
|
print(json.dumps(client.models.list_available(), indent=4))
|
|
print(json.dumps(client.health.check(), indent=4))
|
|
print(json.dumps(client.swarms.get_logs(), indent=4))
|
|
print(json.dumps(client.client.rate.get_limits(), indent=4))
|
|
print(json.dumps(client.swarms.check_available(), indent=4))
|