aixplain.v2.core
Core module for aiXplain v2 API.
Aixplain Objects
class Aixplain()
Main class for the Aixplain API.
This class can be instantiated multiple times with different API keys, allowing for multi-instance usage with different authentication contexts.
__init__
def __init__(api_key: Optional[str] = None,
backend_url: Optional[str] = None,
pipeline_url: Optional[str] = None,
model_url: Optional[str] = None) -> None
Initialize the Aixplain class.
Arguments:
api_keystr, optional - The API key. Falls back to TEAM_API_KEY or AIXPLAIN_API_KEY env var.backend_urlstr, optional - The backend URL. Falls back to BACKEND_URL env var.pipeline_urlstr, optional - The pipeline execution URL. Falls back to PIPELINES_RUN_URL env var.model_urlstr, optional - The model execution URL. Falls back to MODELS_RUN_URL env var.
init_client
def init_client() -> None
Initialize the client.
init_resources
def init_resources() -> None
Initialize the resources.
We're dynamically creating the classes here to avoid potential race conditions when using class level attributes