Batas Laju
Daftar Batas Laju Workspace
organization.workspaces.rate_limits.list(workspace_id, **kwargs) -> SyncPageCursor[WorkspaceRateLimit]Mencantumkan batas laju sebuah workspace.
Atur Batas Laju Workspace
organization.workspaces.rate_limits.update(rate_limit_id, **kwargs) -> WorkspaceRateLimitMengatur atau menghapus override batas laju untuk satu grup batas laju dalam workspace.
Models
class WorkspaceRateLimit: type: "workspace_rate_limit"; group; limits; ... # 3 more
class WorkspaceRateLimitOrganizationSource: type: "organization"
type: Literal["organization"]Always organization: no workspace-level override is stored, so the organization's value applies.
Always organization: no workspace-level override is stored, so the organization's value applies.
type WorkspaceRateLimitType = Literal["fast_itpmca", "fast_otpm", "input_tokens_per_minute", 6 more]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.
class WorkspaceRateLimitUpdateValueParam: type; value
type: WorkspaceRateLimitTypeRate 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.
value: Optional[int]New 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 WorkspaceRateLimitValue: type; org_limit; 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 WorkspaceRateLimitWorkspaceSource: type: "workspace"
type: Literal["workspace"]Always workspace: a workspace-level override is stored.
Always workspace: a workspace-level override is stored.
class WorkspaceRateLimitOrganizationSource: type: "organization"
type: Literal["organization"]Always organization: no workspace-level override is stored, so the organization's value applies.
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 WorkspaceRateLimitWorkspaceSource: type: "workspace"
type: Literal["workspace"]Always workspace: a workspace-level override is stored.
Always workspace: a workspace-level override is stored.