Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeError = "error" TypeModelNotFound = "model_not_found" TypeRequestRetryExceeded = "request_retry_exceeded" TypeUserCreditsInsufficient = "user_credits_insufficient" )
View Source
const ( MessageError = "error" MessageRuntimeNotReady = "runtime not ready" MessageWrongNumberOfArgumentsGet = "wrong number of arguments for 'get' command" MessageWrongNumberOfArgumentsRPOP = "wrong number of arguments for 'rpop' command" MessageInvalidRequestJSON = "invalid request json" MessageUnsupportedType = "unsupported type" MessageMissingAuthIndex = "missing auth_index" MessageAuthNotFound = "auth not found" MessageNoDispatchResult = "no dispatch result" MessageNoAuthAvailable = "no auth available" MessageMissingModel = "missing model" MessageMissingRequiredCredentialHeaders = "missing required credential headers" MessageInvalidAPIKey = "invalid api key" MessageRequestRetryExceeded = "request retry limit exceeded" MessageUserCreditsInsufficient = "insufficient user credits" MessageModelDoesNotExistFmt = "model %s does not exist" )
Variables ¶
This section is empty.
Functions ¶
func SplitRedisErrorMessage ¶
SplitRedisErrorMessage converts "type: message" formatted strings into structured (type, message) pairs for RESP JSON error responses.
It intentionally only treats the prefix as a type when it looks like a machine-readable code (lowercase snake_case).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.