MCPcopy Create free account
hub / github.com/Noumena-Network/code / isRateLimitErrorMessage

Function isRateLimitErrorMessage

src/services/rateLimitMessages.ts:37–39  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

35 * Check if a message is a rate limit error
36 */
37export function isRateLimitErrorMessage(text: string): boolean {
38 return RATE_LIMIT_ERROR_PREFIXES.some(prefix => text.startsWith(prefix))
39}
40
41export type RateLimitMessage = {
42 message: string

Callers 1

AssistantTextMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected