Listing Providers
- Using the API:
- In Python:
curl -X GET -H "x-api-key: $JAVELIN_API_KEY" "https://api.javelin.live/v1/admin/providers"
Javelin List Providers Example
from javelin_sdk import (
JavelinClient,
JavelinConfig,
Provider
)
import os
# Retrieve environment variables
javelin_api_key = os.getenv('JAVELIN_API_KEY')
# create javelin client
config = JavelinConfig(
base_url="https://api-dev.javelin.live",
javelin_api_key=javelin_api_key,
llm_api_key=llm_api_key
)
client = JavelinClient(config)
# print out the list of providers, for async use `await client.alist_providers()`
print(client.list_providers())