速率限制
列出工作區速率限制
RateLimitListPage Beta.Organization.Workspaces.RateLimits.List(parameters, cancellationToken = default)列出工作區的速率限制。
設定工作區速率限制
BetaWorkspaceRateLimit Beta.Organization.Workspaces.RateLimits.Update(parameters, cancellationToken = default)為工作區中的單一速率限制群組設定或清除速率限制覆寫。
Models
class BetaWorkspaceRateLimit { Type = "workspace_rate_limit"; Group; Limits; /* 3 more */ }
class BetaWorkspaceRateLimitOrganizationSource { Type = "organization"; }
Always organization: no workspace-level override is stored, so the organization's value applies.
enum BetaWorkspaceRateLimitTypeRate limiter type.
Rate limiter type.
class BetaWorkspaceRateLimitUpdateValue { Type; Value; }
required BetaWorkspaceRateLimitType TypeRate limiter type.
Rate limiter type.
required long? ValueNew limit value. Set to null to clear the workspace override and fall back to the organization limit.
New limit value. Set to null to clear the workspace override and fall back to the organization limit.
class BetaWorkspaceRateLimitValue { Type; OrgLimit; Source; Value; }
The limiter type (for example, requests_per_minute or input_tokens_per_minute).
The organization-level value for the same limiter type, for reference. null when the organization has no limit configured for this limiter type.
required Source SourceWhere value comes from. organization values are listed only when include_inherited is true, and then value equals org_limit.
Where value comes from. organization values are listed only when include_inherited is true, and then value equals org_limit.
class BetaWorkspaceRateLimitWorkspaceSource { Type = "workspace"; }
Always workspace: a workspace-level override is stored.
class BetaWorkspaceRateLimitOrganizationSource { Type = "organization"; }
Always organization: no workspace-level override is stored, so the organization's value applies.
The workspace's value for this limiter type: the workspace-level override when source.type is workspace, otherwise the organization's value.
class BetaWorkspaceRateLimitWorkspaceSource { Type = "workspace"; }
Always workspace: a workspace-level override is stored.