Interface HttpOptions

HTTP options to be used in each of the requests.

interface HttpOptions {
    apiVersion?: string;
    baseUrl?: string;
    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.

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.