Interface HttpOptions

HTTP options to be used in each of the requests.

interface HttpOptions {
    apiVersion?: string;
    baseUrl?: string;
    baseUrlResourceScope?: COLLECTION;
    extraBody?: Record<string, unknown>;
    headers?: Record<string, string>;
    timeout?: number;
}

Properties

apiVersion?: string

Specifies the version of the API to use.

baseUrl?: string

The base URL for the AI platform service endpoint.

baseUrlResourceScope?: COLLECTION

The resource scope used to constructing the resource name when base_url is set

extraBody?: Record<string, unknown>

Extra parameters to add to the request body. The structure must match the backend API's request structure.

headers?: Record<string, string>

Additional HTTP headers to be sent with the request.

timeout?: number

Timeout for the request in milliseconds.