MCPcopy
hub / github.com/HisMax/RedInk / inferRetryable

Function inferRetryable

frontend/src/utils/errors.ts:148–151  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

146}
147
148function inferRetryable(message: string): boolean {
149 const code = inferCode(message)
150 return ['PROXY_UNAVAILABLE', 'NETWORK_FAKE_IP_TLS', 'RATE_LIMITED', 'NETWORK_TIMEOUT', 'UNKNOWN_ERROR'].includes(code)
151}

Callers 1

legacyMessageToErrorFunction · 0.85

Calls 1

inferCodeFunction · 0.85

Tested by

no test coverage detected