class documentation

class HubAIClient:

Constructor: HubAIClient(api_key)

View In Hierarchy

Undocumented

Method __init__ Initialize a HubAI SDK client.
Instance Variable convert Undocumented
Instance Variable instances Undocumented
Instance Variable models Undocumented
Instance Variable variants Undocumented
Method _verify_api_key Check whether the configured API key is accepted by HubAI.
def __init__(self, api_key: str | None = None):

Initialize a HubAI SDK client.

Parameters
api_key:str | NoneHubAI API key. If omitted, the client falls back to HUBAI_API_KEY and then to the key loaded into environ.
Raises
ValueErrorIf no API key is available or the provided key is invalid.
convert =

Undocumented

instances =

Undocumented

models =

Undocumented

variants =

Undocumented

def _verify_api_key(self) -> bool:

Check whether the configured API key is accepted by HubAI.

Returns
boolTrue if the API key is valid, otherwise False for authentication failures.