Class AiGatewayRateLimitUpdateAttributes

Attributes used to update an AI Gateway rate limit. Only sent fields are changed.

Hierarchy

  • AiGatewayRateLimitUpdateAttributes

Constructors

Properties

additionalProperties?: {
    [key: string]: any;
}

A container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.

Type declaration

  • [key: string]: any
costMicrocentsPerMinute?: number

Spend limit in microcents per rolling minute. Set to 0 to remove the cost limit. Null is ignored. At least one limit, per-minute or in window_limits, must remain.

enabled?: boolean

Whether this rate limit is active.

inputTokensPerMinute?: number

Set to 0 to remove the input token limit. Null is ignored. At least one limit, per-minute or in window_limits, must remain.

Action taken when request rate exceeds the limit.

name?: string

Rate limit name.

outputTokensPerMinute?: number

Set to 0 to remove the output token limit. Null is ignored. At least one limit, per-minute or in window_limits, must remain.

requestsPerMinute?: number

Set to 0 to remove the request limit. Null is ignored. At least one limit, per-minute or in window_limits, must remain.

tags?: {
    [key: string]: string;
}

Replaces all scope tags. An empty object clears them. Null is ignored.

Type declaration

  • [key: string]: string
teamId?: string

Replaces the Team scope. An empty string clears it. Null is ignored.

userId?: string

Replaces the user scope. An empty string clears it. Null is ignored.

Replaces all limits over rolling windows longer than a minute. If window_limits is null or omitted, the existing limits are unchanged. An empty array removes them all. This field is available only to organizations with the feature enabled. Other organizations receive a 400 Bad Request response for a non-empty list. The same rules as on create apply. A rule can have at most four limits in total, including any per-minute limits that are set. Each metric and window pair can appear only once, and for the same metric, a longer window must have a larger amount. In ENFORCE mode, if the list includes a cost limit, the gateway rejects requests to models with no pricing because their cost can't be counted.

Generated using TypeDoc