AuthenticationException
class AuthenticationException(val statusCode: Int, val error: OpenAIError, throwable: Throwable? = null) : OpenAIAPIException
Represents an exception thrown when an authentication error occurs while interacting with the OpenAI API.
Properties
Link copied to clipboard
an instance of OpenAIError containing information about the error that occurred.
Link copied to clipboard
the HTTP status code associated with the error.