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_key- str: The API key for the Aixplain API.backend_url- str: The URL for the backend.pipeline_url- str: The URL for the pipeline.model_url- str: The URL for the model.
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