Skip to content

OpenAIError

MarcoDotIO edited this page Dec 5, 2022 · 1 revision

OpenAIError

OpenAIKit errors that are thrown depending on the context.

public enum OpenAIError: Error 

Inheritance

Error

Enumeration Cases

noApiKey

No API Key was provided to the OpenAIKit object.

case noApiKey

noBody

No body was provided to a decode URL request.

case noBody

promptThreshold

The amount of prompts being requested have exceeded the amount OpenAI allocates per time frame.

case promptThreshold

invalidUrl

An invalid URL was unwrapped / used.

case invalidUrl

invalidData

Invalid data was decoded / encoded.

case invalidData

notImplemented

The function has not been implemented yet.

case notImplemented

unknownError

An unknown error has occured. Please create an issue on Github if this error is thrown.

case unknownError
Types
Global Functions
Clone this wiki locally