速率限制
設定工作區速率限制
POST/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}
為工作區中的單一速率限制群組設定或清除速率限制覆寫。
Models
BetaWorkspaceRateLimit object{ type: "workspace_rate_limit", group, group_type, 4 more }
BetaWorkspaceRateLimit object{ type: "workspace_rate_limit", group, group_type, 4 more }
BetaWorkspaceRateLimitOrganizationSource object{ type: "organization" }
BetaWorkspaceRateLimitOrganizationSource object{ type: "organization" }
type: "organization"Always organization: no workspace-level override is stored, so the organization's value applies.
type: "organization"
Always organization: no workspace-level override is stored, so the organization's value applies.
defaultorganization
BetaWorkspaceRateLimitType = "fast_itpmca" or "fast_otpm" or "input_tokens_per_minute" or 6 moreRate limiter type.
BetaWorkspaceRateLimitType = "fast_itpmca" or "fast_otpm" or "input_tokens_per_minute" or 6 more
Rate limiter type.
One of the following:
"fast_itpmca"
"fast_otpm"
"input_tokens_per_minute"
"input_tokens_per_minute_cache_aware"
"output_tokens_per_minute"
"requests_per_minute"
"tokens_per_day"
"tokens_per_minute"
"tool_uses_per_second"
BetaWorkspaceRateLimitUpdateValue object{ type, value }
BetaWorkspaceRateLimitUpdateValue object{ type, value }
Rate limiter type.
Rate limiter type.
One of the following:
"fast_itpmca"
"fast_otpm"
"input_tokens_per_minute"
"input_tokens_per_minute_cache_aware"
"output_tokens_per_minute"
"requests_per_minute"
"tokens_per_day"
"tokens_per_minute"
"tool_uses_per_second"
value: number or nullNew limit value. Set to null to clear the workspace override and fall back to the organization limit.
value: number or null
New limit value. Set to null to clear the workspace override and fall back to the organization limit.
minimum0
maximum9007199254740991
BetaWorkspaceRateLimitValue object{ type, org_limit, source, value }
BetaWorkspaceRateLimitValue object{ type, org_limit, source, value }
BetaWorkspaceRateLimitWorkspaceSource object{ type: "workspace" }
BetaWorkspaceRateLimitWorkspaceSource object{ type: "workspace" }
type: "workspace"Always workspace: a workspace-level override is stored.
type: "workspace"
Always workspace: a workspace-level override is stored.
defaultworkspace