MCPcopy
hub / github.com/BlockRunAI/ClawRouter / markRateLimited

Function markRateLimited

src/proxy.ts:512–515  ·  view source on GitHub ↗

* Mark a model as rate-limited.

(modelId: string)

Source from the content-addressed store, hash-verified

510 * Mark a model as rate-limited.
511 */
512function markRateLimited(modelId: string): void {
513 rateLimitedModels.set(modelId, Date.now());
514 console.log(`[ClawRouter] Model ${modelId} rate-limited, will deprioritize for 60s`);
515}
516
517/**
518 * Mark a model as temporarily overloaded (529/503 capacity).

Callers 1

proxyRequestFunction · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected