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

Function isAbortLike

src/services/api/openAICompatInferenceClient.ts:133–135  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

131}
132
133function isAbortLike(error: unknown): boolean {
134 return error instanceof Error && error.name === 'AbortError'
135}
136
137function isAbortFinishReason(finishReason: string | null | undefined): boolean {
138 return finishReason?.trim().toLowerCase() === 'abort'

Callers 3

postJSONMethod · 0.85
getJSONMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected