MCPcopy Create free account
hub / github.com/freecodexyz/free-code / isFastModeNotEnabledError

Function isFastModeNotEnabledError

src/services/api/withRetry.ts:600–608  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

598// header for fast-mode rejection (e.g., x-fast-mode-rejected). String-matching
599// the error message is fragile and will break if the API wording changes.
600function isFastModeNotEnabledError(error: unknown): boolean {
601 if (!(error instanceof APIError)) {
602 return false
603 }
604 return (
605 error.status === 400 &&
606 (error.message?.includes('Fast mode is not enabled') ?? false)
607 )
608}
609
610export function is529Error(error: unknown): boolean {
611 if (!(error instanceof APIError)) {

Callers 1

withRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected