Default parameters for API requests

interface CreateRateLimitParams {
    headers?: OutgoingHttpHeaders;
    modelId?: string;
    providerId?: string;
    request?: RateLimitItem;
    signal?: AbortSignal;
    token?: RateLimitItem;
    type: "model" | "tenant" | "provider";
}

Hierarchy (view full)

Properties

headers?: OutgoingHttpHeaders
modelId?: string

The UUID of the model this rate limit applies to

providerId?: string

The UUID of the provider this rate limit applies to

request?: RateLimitItem

Request rate limiting settings

signal?: AbortSignal

Token rate limiting settings

type: "model" | "tenant" | "provider"

The type of rate limit, always "tenant" for tenant-level rate limits

Example

tenant;