MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / handleOpenAIError

Function handleOpenAIError

src/api/providers/utils/openai-error-handler.ts:17–19  ·  view source on GitHub ↗
(error: unknown, providerName: string)

Source from the content-addressed store, hash-verified

15 * @returns The original error or a transformed user-friendly error
16 */
17export function handleOpenAIError(error: unknown, providerName: string): Error {
18 return handleProviderError(error, providerName, { messagePrefix: "completion" })
19}

Callers 15

constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
createMessageMethod · 0.90
completePromptMethod · 0.90
createMessageMethod · 0.90
completePromptMethod · 0.90
handleO3FamilyMessageMethod · 0.90
createMessageMethod · 0.90
completePromptMethod · 0.90
createMessageMethod · 0.90

Calls 1

handleProviderErrorFunction · 0.90

Tested by

no test coverage detected