Documentation
¶
Index ¶
- Constants
- func GetImageTooLargeErrorMessage() string
- func GetOauthOrgNotAllowedErrorMessage() string
- func GetPdfInvalidErrorMessage() string
- func GetPdfPasswordProtectedErrorMessage() string
- func GetPdfTooLargeErrorMessage() string
- func GetRequestTooLargeErrorMessage() string
- func GetTokenRevokedErrorMessage() string
- func IsMediaSizeError(raw string) bool
- func ParsePromptTooLongTokenCounts(rawMessage string) (actualTokens *int, limitTokens *int)
- func StartsWithApiErrorPrefix(text string) bool
Constants ¶
View Source
const ( APIErrorMessagePrefix = "API Error" PromptTooLongErrorMessage = "Prompt is too long" CreditBalanceTooLowErrorMessage = "Credit balance is too low" InvalidAPIKeyErrorMessage = "Not logged in · Please run /login" InvalidAPIKeyErrorMessageExternal = "Invalid API key · Please check your credentials" OrgDisabledErrorMessageEnvKeyWithOAuth = "Organization disabled" OrgDisabledErrorMessageEnvKey = "Organization disabled" TokenRevokedErrorMessage = "Token has been revoked" CCRAuthErrorMessage = "Authentication error" Repeated529ErrorMessage = "Repeated 529 Overloaded errors" CustomOffSwitchMessage = "Service temporarily disabled" APITimeoutErrorMessage = "Request timed out" OAuthOrgNotAllowedErrorMessage = "Organization not allowed for OAuth" )
Variables ¶
This section is empty.
Functions ¶
func GetImageTooLargeErrorMessage ¶
func GetImageTooLargeErrorMessage() string
func GetOauthOrgNotAllowedErrorMessage ¶
func GetOauthOrgNotAllowedErrorMessage() string
func GetPdfInvalidErrorMessage ¶
func GetPdfInvalidErrorMessage() string
func GetPdfPasswordProtectedErrorMessage ¶
func GetPdfPasswordProtectedErrorMessage() string
func GetPdfTooLargeErrorMessage ¶
func GetPdfTooLargeErrorMessage() string
func GetRequestTooLargeErrorMessage ¶
func GetRequestTooLargeErrorMessage() string
func GetTokenRevokedErrorMessage ¶
func GetTokenRevokedErrorMessage() string
func IsMediaSizeError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.