MCPcopy Index your code
hub / github.com/anomalyco/opencode / isOpenAiErrorRetryable

Function isOpenAiErrorRetryable

packages/opencode/src/provider/error.ts:23–28  ·  view source on GitHub ↗
(e: APICallError)

Source from the content-addressed store, hash-verified

21}
22
23function isOpenAiErrorRetryable(e: APICallError) {
24 const status = e.statusCode
25 if (!status) return e.isRetryable
26 // openai sometimes returns 404 for models that are actually available
27 return status === 404 || e.isRetryable
28}
29
30// Providers not reliably handled in this function:
31// - z.ai: can accept overflow silently (needs token-count/context-window checks)

Callers 1

parseAPICallErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected