レート制限
ワークスペースのレート制限一覧を取得
RateLimitListPage beta().organization().workspaces().rateLimits().list(params = RateLimitListParams.none(), requestOptions = RequestOptions.none())ワークスペースのレート制限を一覧表示します。
ワークスペースのレート制限を設定
BetaWorkspaceRateLimit beta().organization().workspaces().rateLimits().update(params, requestOptions = RequestOptions.none())ワークスペース内の1つのレート制限グループについて、レート制限のオーバーライドを設定またはクリアします。
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. input_tokens_per_minute counts every input token, cache reads included. input_tokens_per_minute_cache_aware does not count cache reads, and on current models the organization's input-token limit usually has this type. A workspace limit of either type applies alongside the organization's limit, not in place of it. Because cache reads count toward an input_tokens_per_minute limit, it can reject requests that read mostly from the cache while the organization's limit still has room.
Rate limiter type. input_tokens_per_minute counts every input token, cache reads included. input_tokens_per_minute_cache_aware does not count cache reads, and on current models the organization's input-token limit usually has this type. A workspace limit of either type applies alongside the organization's limit, not in place of it. Because cache reads count toward an input_tokens_per_minute limit, it can reject requests that read mostly from the cache while the organization's limit still has room.
class BetaWorkspaceRateLimitUpdateValue { type; value; }
Rate limiter type. input_tokens_per_minute counts every input token, cache reads included. input_tokens_per_minute_cache_aware does not count cache reads, and on current models the organization's input-token limit usually has this type. A workspace limit of either type applies alongside the organization's limit, not in place of it. Because cache reads count toward an input_tokens_per_minute limit, it can reject requests that read mostly from the cache while the organization's limit still has room.
Rate limiter type. input_tokens_per_minute counts every input token, cache reads included. input_tokens_per_minute_cache_aware does not count cache reads, and on current models the organization's input-token limit usually has this type. A workspace limit of either type applies alongside the organization's limit, not in place of it. Because cache reads count toward an input_tokens_per_minute limit, it can reject requests that read mostly from the cache while the organization's limit still has room.
Optional<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_cache_aware).
The organization-level value for the same limiter type, for reference. null when the organization has no limit configured for this limiter type.
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.