Skip to content

Commit 04a8b79

Browse files
waleedlatif1claude
andcommitted
docs(chat): note the one plan rate where the derived ceiling lands equal
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QWh9WFMYNZ6uTFQFUzF8Bj
1 parent 16682e8 commit 04a8b79

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • apps/sim/app/api/chat/[identifier]

apps/sim/app/api/chat/[identifier]/route.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ function executionsPerMinute(perMinute: number): TokenBucketConfig {
7979
* The floor is deliberately shared by all plans for now. Sizing the slice to
8080
* the *payer's* own plan needs the subscription, which `preprocessExecution`
8181
* resolves a few lines after this runs, not here.
82+
*
83+
* A configured rate of `1` is the one value where this lands equal to the plan
84+
* rather than under it, because no positive integer is below 1. It is inert:
85+
* a workspace allowed one execution per minute has no capacity left to starve,
86+
* and the two buckets then exhaust together rather than one masking the other.
8287
*/
8388
const CHAT_EXECUTION_RATE_PER_MINUTE = Math.max(
8489
1,

0 commit comments

Comments
 (0)