Models class for handling model-related operations.

Hierarchy

  • GatewayResource
    • Models

Constructors

Properties

Methods

Constructors

Properties

Client instance for API calls.

Memberof

GatewayResource

Methods

  • Add Model.

    Adds a new model configuration for the specified provider.

    Parameters

    Returns Promise<WatsonXAI.Response<Model>>

    • A promise that resolves with the created model.

    Throws

    If validation fails or an error occurs during the request.

  • Delete Model.

    Removes a specific model configuration from the tenant by id.

    Parameters

    Returns Promise<EmptyObject>

    Throws

    If validation fails or an error occurs during the request.

  • List all models or models for a specific provider.

    Parameters

    • Optional params: ListAllModelsParams = {}

      Parameters for listing all models or models for a provider.

    Returns Promise<Model[]>

    • A promise that resolves with the list of models.

    Throws

    If validation fails or an error occurs during the request.