Parameters for the createDeployment operation.

interface CreateDeploymentParams {
    asset?: WatsonXAI.Rel;
    baseModelId?: string;
    custom?: WatsonXAI.JsonObject;
    description?: string;
    hardwareRequest?: WatsonXAI.HardwareRequest;
    hardwareSpec?: WatsonXAI.HardwareSpec;
    headers?: OutgoingHttpHeaders;
    name: string;
    online: WatsonXAI.OnlineDeployment;
    projectId?: string;
    promptTemplate?: WatsonXAI.SimpleRel;
    spaceId?: string;
    tags?: string[];
}

Properties

asset?: WatsonXAI.Rel

A reference to a resource.

baseModelId?: string

The base model that is required for this deployment if this is for a prompt template or a prompt tune for an IBM foundation model.

User defined properties specified as key-value pairs.

description?: string

A description of the resource.

hardwareRequest?: WatsonXAI.HardwareRequest

The requested hardware for deployment.

hardwareSpec?: WatsonXAI.HardwareSpec

A hardware specification.

headers?: OutgoingHttpHeaders
name: string

The name of the resource.

Indicates that this is an online deployment. An object has to be specified but can be empty. The serving_name can be provided in the online.parameters.

projectId?: string

The project that contains the resource. Either space_id or project_id has to be given.

promptTemplate?: WatsonXAI.SimpleRel

A reference to a resource.

spaceId?: string

The space that contains the resource. Either space_id or project_id has to be given.

tags?: string[]

A list of tags for this resource.