{"modulePath":"github.com/MAX-API-Next/MAX-API","version":"v1.0.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package constant\n\n## Constants\n\n```go\nconst (\n\tAPITypeOpenAI = iota\n\tAPITypeAnthropic\n\tAPITypePaLM\n\tAPITypeBaidu\n\tAPITypeZhipu\n\tAPITypeAli\n\tAPITypeXunfei\n\tAPITypeAIProxyLibrary\n\tAPITypeTencent\n\tAPITypeGemini\n\tAPITypeZhipuV4\n\tAPITypeOllama\n\tAPITypePerplexity\n\tAPITypeAws\n\tAPITypeCohere\n\tAPITypeDify\n\tAPITypeJina\n\tAPITypeCloudflare\n\tAPITypeSiliconFlow\n\tAPITypeVertexAi\n\tAPITypeMistral\n\tAPITypeDeepSeek\n\tAPITypeMokaAI\n\tAPITypeVolcEngine\n\tAPITypeBaiduV2\n\tAPITypeOpenRouter\n\tAPITypeXinference\n\tAPITypeXai\n\tAPITypeCoze\n\tAPITypeJimeng\n\tAPITypeMoonshot\n\tAPITypeSubmodel\n\tAPITypeMiniMax\n\tAPITypeReplicate\n\tAPITypeCodex\n\tAPITypeAdvancedCustom\n\tAPITypeDummy // this one is only for count, do not add any channel after this\n)\n```\n\n```go\nconst (\n\tUserGroupKeyFmt    = \"user_group:%d\"\n\tUserQuotaKeyFmt    = \"user_quota:%d\"\n\tUserEnabledKeyFmt  = \"user_enabled:%d\"\n\tUserUsernameKeyFmt = \"user_name:%d\"\n)\n```\nCache keys\n\n```go\nconst (\n\tTokenFiledRemainQuota = \"RemainQuota\"\n\tTokenFieldGroup       = \"Group\"\n)\n```\n\n```go\nconst (\n\tChannelTypeUnknown        = 0\n\tChannelTypeOpenAI         = 1\n\tChannelTypeMidjourney     = 2\n\tChannelTypeAzure          = 3\n\tChannelTypeOllama         = 4\n\tChannelTypeMidjourneyPlus = 5\n\tChannelTypeOpenAIMax      = 6\n\tChannelTypeOhMyGPT        = 7\n\tChannelTypeCustom         = 8\n\tChannelTypeAILS           = 9\n\tChannelTypeAIProxy        = 10\n\tChannelTypePaLM           = 11\n\tChannelTypeAPI2GPT        = 12\n\tChannelTypeAIGC2D         = 13\n\tChannelTypeAnthropic      = 14\n\tChannelTypeBaidu          = 15\n\tChannelTypeZhipu          = 16\n\tChannelTypeAli            = 17\n\tChannelTypeXunfei         = 18\n\tChannelType360            = 19\n\tChannelTypeOpenRouter     = 20\n\tChannelTypeAIProxyLibrary = 21\n\tChannelTypeFastGPT        = 22\n\tChannelTypeTencent        = 23\n\tChannelTypeGemini         = 24\n\tChannelTypeMoonshot       = 25\n\tChannelTypeZhipu_v4       = 26\n\tChannelTypePerplexity     = 27\n\tChannelTypeLingYiWanWu    = 31\n\tChannelTypeAws            = 33\n\tChannelTypeCohere         = 34\n\tChannelTypeMiniMax        = 35\n\tChannelTypeSunoAPI        = 36\n\tChannelTypeDify           = 37\n\tChannelTypeJina           = 38\n\tChannelCloudflare         = 39\n\tChannelTypeSiliconFlow    = 40\n\tChannelTypeVertexAi       = 41\n\tChannelTypeMistral        = 42\n\tChannelTypeDeepSeek       = 43\n\tChannelTypeMokaAI         = 44\n\tChannelTypeVolcEngine     = 45\n\tChannelTypeBaiduV2        = 46\n\tChannelTypeXinference     = 47\n\tChannelTypeXai            = 48\n\tChannelTypeCoze           = 49\n\tChannelTypeKling          = 50\n\tChannelTypeJimeng         = 51\n\tChannelTypeVidu           = 52\n\tChannelTypeSubmodel       = 53\n\tChannelTypeDoubaoVideo    = 54\n\tChannelTypeSora           = 55\n\tChannelTypeReplicate      = 56\n\tChannelTypeCodex          = 57\n\tChannelTypeAdvancedCustom = 58\n\tChannelTypeDummy          // this one is only for count, do not add any channel after this\n\n)\n```\n\n```go\nconst (\n\tDefaultStreamingTimeout                = 300\n\tDefaultMaxFileDownloadMB               = 64\n\tDefaultStreamScannerMaxBufferMB        = 128\n\tDefaultMaxRequestBodyMB                = 128\n\tDefaultAnonymousRequestBodyLimitKB     = 512\n\tDefaultAzureDefaultAPIVersion          = \"2025-04-01-preview\"\n\tDefaultNotifyLimitCount                = 2\n\tDefaultNotificationLimitDurationMinute = 10\n\tDefaultTaskQueryLimit                  = 1000\n\tDefaultTaskTimeoutMinutes              = 1440\n\tDefaultDifyDebug                       = true\n\tDefaultForceStreamOption               = true\n\tDefaultCountToken                      = true\n\tDefaultGetMediaToken                   = true\n\tDefaultGetMediaTokenNotStream          = false\n\tDefaultUpdateTask                      = true\n\tDefaultGenerateDefaultToken            = false\n\tDefaultErrorLogEnabled                 = false\n)\n```\n\n```go\nconst (\n\tMjErrorUnknown = 5\n\tMjRequestError = 4\n)\n```\n\n```go\nconst (\n\tMjActionImagine       = \"IMAGINE\"\n\tMjActionDescribe      = \"DESCRIBE\"\n\tMjActionBlend         = \"BLEND\"\n\tMjActionUpscale       = \"UPSCALE\"\n\tMjActionVariation     = \"VARIATION\"\n\tMjActionReRoll        = \"REROLL\"\n\tMjActionInPaint       = \"INPAINT\"\n\tMjActionModal         = \"MODAL\"\n\tMjActionZoom          = \"ZOOM\"\n\tMjActionCustomZoom    = \"CUSTOM_ZOOM\"\n\tMjActionShorten       = \"SHORTEN\"\n\tMjActionHighVariation = \"HIGH_VARIATION\"\n\tMjActionLowVariation  = \"LOW_VARIATION\"\n\tMjActionPan           = \"PAN\"\n\tMjActionSwapFace      = \"SWAP_FACE\"\n\tMjActionUpload        = \"UPLOAD\"\n\tMjActionVideo         = \"VIDEO\"\n\tMjActionEdits         = \"EDITS\"\n)\n```\n\n```go\nconst (\n\tSunoActionMusic  = \"MUSIC\"\n\tSunoActionLyrics = \"LYRICS\"\n\n\tTaskActionGenerate          = \"generate\"\n\tTaskActionTextGenerate      = \"textGenerate\"\n\tTaskActionFirstTailGenerate = \"firstTailGenerate\"\n\tTaskActionReferenceGenerate = \"referenceGenerate\"\n\tTaskActionRemix             = \"remixGenerate\"\n\tTaskActionKlingOmniVideo    = \"klingOmniVideo\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tFinishReasonStop          = \"stop\"\n\tFinishReasonToolCalls     = \"tool_calls\"\n\tFinishReasonLength        = \"length\"\n\tFinishReasonFunctionCall  = \"function_call\"\n\tFinishReasonContentFilter = \"content_filter\"\n)\n```\n\n```go\nvar AnonymousRequestBodyLimitKB = DefaultAnonymousRequestBodyLimitKB\n```\n\n```go\nvar AzureDefaultAPIVersion = DefaultAzureDefaultAPIVersion\n```\n\n```go\nvar AzureNoRemoveDotTime = time.Date(2025, time.May, 10, 0, 0, 0, 0, time.UTC).Unix()\n```\n\n```go\nvar ChannelBaseURLs = []string{\n\t\"\",\n\t\"https://api.openai.com\",\n\t\"https://oa.api2d.net\",\n\t\"\",\n\t\"http://localhost:11434\",\n\t\"https://api.openai-sb.com\",\n\t\"https://api.openaimax.com\",\n\t\"https://api.ohmygpt.com\",\n\t\"\",\n\t\"https://api.caipacity.com\",\n\t\"https://api.aiproxy.io\",\n\t\"\",\n\t\"https://api.api2gpt.com\",\n\t\"https://api.aigc2d.com\",\n\t\"https://api.anthropic.com\",\n\t\"https://aip.baidubce.com\",\n\t\"https://open.bigmodel.cn\",\n\t\"https://dashscope.aliyuncs.com\",\n\t\"\",\n\t\"https://api.360.cn\",\n\t\"https://openrouter.ai/api\",\n\t\"https://api.aiproxy.io\",\n\t\"https://fastgpt.run/api/openapi\",\n\t\"https://hunyuan.tencentcloudapi.com\",\n\t\"https://generativelanguage.googleapis.com\",\n\t\"https://api.moonshot.cn\",\n\t\"https://open.bigmodel.cn\",\n\t\"https://api.perplexity.ai\",\n\t\"\",\n\t\"\",\n\t\"\",\n\t\"https://api.lingyiwanwu.com\",\n\t\"\",\n\t\"\",\n\t\"https://api.cohere.ai\",\n\t\"https://api.minimax.chat\",\n\t\"\",\n\t\"https://api.dify.ai\",\n\t\"https://api.jina.ai\",\n\t\"https://api.cloudflare.com\",\n\t\"https://api.siliconflow.cn\",\n\t\"\",\n\t\"https://api.mistral.ai\",\n\t\"https://api.deepseek.com\",\n\t\"https://api.moka.ai\",\n\t\"https://ark.cn-beijing.volces.com\",\n\t\"https://qianfan.baidubce.com\",\n\t\"\",\n\t\"https://api.x.ai\",\n\t\"https://api.coze.cn\",\n\t\"https://api.klingai.com\",\n\t\"https://visual.volcengineapi.com\",\n\t\"https://api.vidu.cn\",\n\t\"https://llm.submodel.ai\",\n\t\"https://ark.cn-beijing.volces.com\",\n\t\"https://api.openai.com\",\n\t\"https://api.replicate.com\",\n\t\"https://chatgpt.com\",\n\t\"\",\n}\n```\n\n```go\nvar ChannelSpecialBases = map[string]ChannelSpecialBase{\n\t\"glm-coding-plan\": {\n\t\tClaudeBaseURL: \"https://open.bigmodel.cn/api/anthropic\",\n\t\tOpenAIBaseURL: \"https://open.bigmodel.cn/api/coding/paas/v4\",\n\t},\n\t\"glm-coding-plan-international\": {\n\t\tClaudeBaseURL: \"https://api.z.ai/api/anthropic\",\n\t\tOpenAIBaseURL: \"https://api.z.ai/api/coding/paas/v4\",\n\t},\n\t\"kimi-coding-plan\": {\n\t\tClaudeBaseURL: \"https://api.kimi.com/coding\",\n\t\tOpenAIBaseURL: \"https://api.kimi.com/coding/v1\",\n\t},\n\t\"doubao-coding-plan\": {\n\t\tClaudeBaseURL: \"https://ark.cn-beijing.volces.com/api/coding\",\n\t\tOpenAIBaseURL: \"https://ark.cn-beijing.volces.com/api/coding/v3\",\n\t},\n}\n```\n\n```go\nvar ChannelTypeNames = map[int]string{\n\tChannelTypeUnknown:        \"Unknown\",\n\tChannelTypeOpenAI:         \"OpenAI\",\n\tChannelTypeMidjourney:     \"Midjourney\",\n\tChannelTypeAzure:          \"Azure\",\n\tChannelTypeOllama:         \"Ollama\",\n\tChannelTypeMidjourneyPlus: \"MidjourneyPlus\",\n\tChannelTypeOpenAIMax:      \"OpenAIMax\",\n\tChannelTypeOhMyGPT:        \"OhMyGPT\",\n\tChannelTypeCustom:         \"Custom\",\n\tChannelTypeAILS:           \"AILS\",\n\tChannelTypeAIProxy:        \"AIProxy\",\n\tChannelTypePaLM:           \"PaLM\",\n\tChannelTypeAPI2GPT:        \"API2GPT\",\n\tChannelTypeAIGC2D:         \"AIGC2D\",\n\tChannelTypeAnthropic:      \"Anthropic\",\n\tChannelTypeBaidu:          \"Baidu\",\n\tChannelTypeZhipu:          \"Zhipu\",\n\tChannelTypeAli:            \"Ali\",\n\tChannelTypeXunfei:         \"Xunfei\",\n\tChannelType360:            \"360\",\n\tChannelTypeOpenRouter:     \"OpenRouter\",\n\tChannelTypeAIProxyLibrary: \"AIProxyLibrary\",\n\tChannelTypeFastGPT:        \"FastGPT\",\n\tChannelTypeTencent:        \"Tencent\",\n\tChannelTypeGemini:         \"Gemini\",\n\tChannelTypeMoonshot:       \"Moonshot\",\n\tChannelTypeZhipu_v4:       \"ZhipuV4\",\n\tChannelTypePerplexity:     \"Perplexity\",\n\tChannelTypeLingYiWanWu:    \"LingYiWanWu\",\n\tChannelTypeAws:            \"AWS\",\n\tChannelTypeCohere:         \"Cohere\",\n\tChannelTypeMiniMax:        \"MiniMax\",\n\tChannelTypeSunoAPI:        \"SunoAPI\",\n\tChannelTypeDify:           \"Dify\",\n\tChannelTypeJina:           \"Jina\",\n\tChannelCloudflare:         \"Cloudflare\",\n\tChannelTypeSiliconFlow:    \"SiliconFlow\",\n\tChannelTypeVertexAi:       \"VertexAI\",\n\tChannelTypeMistral:        \"Mistral\",\n\tChannelTypeDeepSeek:       \"DeepSeek\",\n\tChannelTypeMokaAI:         \"MokaAI\",\n\tChannelTypeVolcEngine:     \"VolcEngine\",\n\tChannelTypeBaiduV2:        \"BaiduV2\",\n\tChannelTypeXinference:     \"Xinference\",\n\tChannelTypeXai:            \"xAI\",\n\tChannelTypeCoze:           \"Coze\",\n\tChannelTypeKling:          \"Kling\",\n\tChannelTypeJimeng:         \"Jimeng\",\n\tChannelTypeVidu:           \"Vidu\",\n\tChannelTypeSubmodel:       \"Submodel\",\n\tChannelTypeDoubaoVideo:    \"DoubaoVideo\",\n\tChannelTypeSora:           \"Sora\",\n\tChannelTypeReplicate:      \"Replicate\",\n\tChannelTypeCodex:          \"Codex\",\n\tChannelTypeAdvancedCustom: \"Advanced Custom\",\n}\n```\n\n```go\nvar CountToken = DefaultCountToken\n```\n\n```go\nvar DefaultWaffoPayMethods = []WaffoPayMethod{\n\t{Name: \"Card\", Icon: \"/pay-card.png\", PayMethodType: \"CREDITCARD,DEBITCARD\", PayMethodName: \"\"},\n\t{Name: \"Apple Pay\", Icon: \"/pay-apple.png\", PayMethodType: \"APPLEPAY\", PayMethodName: \"APPLEPAY\"},\n\t{Name: \"Google Pay\", Icon: \"/pay-google.png\", PayMethodType: \"GOOGLEPAY\", PayMethodName: \"GOOGLEPAY\"},\n}\n```\nDefaultWaffoPayMethods is the default list of supported payment methods.\n\n```go\nvar DifyDebug = DefaultDifyDebug\n```\n\n```go\nvar ErrorLogEnabled = DefaultErrorLogEnabled\n```\n\n```go\nvar ForceStreamOption = DefaultForceStreamOption\n```\n\n```go\nvar GenerateDefaultToken = DefaultGenerateDefaultToken\n```\n\n```go\nvar GetMediaToken = DefaultGetMediaToken\n```\n\n```go\nvar GetMediaTokenNotStream = DefaultGetMediaTokenNotStream\n```\n\n```go\nvar MaxFileDownloadMB = DefaultMaxFileDownloadMB\n```\n\n```go\nvar MaxRequestBodyMB = DefaultMaxRequestBodyMB\n```\n\n```go\nvar MidjourneyModel2Action = map[string]string{\n\t\"mj_imagine\":        MjActionImagine,\n\t\"mj_describe\":       MjActionDescribe,\n\t\"mj_blend\":          MjActionBlend,\n\t\"mj_upscale\":        MjActionUpscale,\n\t\"mj_variation\":      MjActionVariation,\n\t\"mj_reroll\":         MjActionReRoll,\n\t\"mj_modal\":          MjActionModal,\n\t\"mj_inpaint\":        MjActionInPaint,\n\t\"mj_zoom\":           MjActionZoom,\n\t\"mj_custom_zoom\":    MjActionCustomZoom,\n\t\"mj_shorten\":        MjActionShorten,\n\t\"mj_high_variation\": MjActionHighVariation,\n\t\"mj_low_variation\":  MjActionLowVariation,\n\t\"mj_pan\":            MjActionPan,\n\t\"swap_face\":         MjActionSwapFace,\n\t\"mj_upload\":         MjActionUpload,\n\t\"mj_video\":          MjActionVideo,\n\t\"mj_edits\":          MjActionEdits,\n}\n```\n\n```go\nvar NotificationLimitDurationMinute = DefaultNotificationLimitDurationMinute\n```\n\n```go\nvar NotifyLimitCount = DefaultNotifyLimitCount\n```\n\n```go\nvar Setup = false\n```\n\n```go\nvar StreamScannerMaxBufferMB = DefaultStreamScannerMaxBufferMB\n```\n\n```go\nvar StreamingTimeout = DefaultStreamingTimeout\n```\n\n```go\nvar SunoModel2Action = map[string]string{\n\t\"suno_music\":  SunoActionMusic,\n\t\"suno_lyrics\": SunoActionLyrics,\n}\n```\n\n```go\nvar TaskPricePatches []string\n```\ntemporary variable for sora patch, will be removed in future\n\n```go\nvar TaskQueryLimit = DefaultTaskQueryLimit\n```\n\n```go\nvar TaskTimeoutMinutes = DefaultTaskTimeoutMinutes\n```\n\n```go\nvar TrustedRedirectDomains []string\n```\nTrustedRedirectDomains is a list of trusted domains for redirect URL validation. Domains support subdomain matching (e.g., \"example.com\" matches \"sub.example.com\").\n\n```go\nvar UpdateTask = DefaultUpdateTask\n```\n\n## Functions\n\n```go\nfunc GetChannelTypeName(channelType int) string\n```\n\n## Types\n\n```go\ntype ChannelSpecialBase struct {\n\tClaudeBaseURL string\n\tOpenAIBaseURL string\n}\n```\n\n```go\ntype ContextKey string\n```\n\n```go\nconst (\n\tContextKeyTokenCountMeta  ContextKey = \"token_count_meta\"\n\tContextKeyPromptTokens    ContextKey = \"prompt_tokens\"\n\tContextKeyEstimatedTokens ContextKey = \"estimated_tokens\"\n\n\tContextKeyOriginalModel    ContextKey = \"original_model\"\n\tContextKeyRequestStartTime ContextKey = \"request_start_time\"\n\n\t/* token related keys */\n\tContextKeyTokenUnlimited         ContextKey = \"token_unlimited_quota\"\n\tContextKeyTokenKey               ContextKey = \"token_key\"\n\tContextKeyTokenId                ContextKey = \"token_id\"\n\tContextKeyTokenGroup             ContextKey = \"token_group\"\n\tContextKeyTokenSpecificChannelId ContextKey = \"specific_channel_id\"\n\tContextKeyTokenModelLimitEnabled ContextKey = \"token_model_limit_enabled\"\n\tContextKeyTokenModelLimit        ContextKey = \"token_model_limit\"\n\tContextKeyTokenCrossGroupRetry   ContextKey = \"token_cross_group_retry\"\n\tContextKeyTokenRoutingPolicy     ContextKey = \"token_routing_policy\"\n\tContextKeyTokenRoutePlan         ContextKey = \"token_route_plan\"\n\n\t/* channel related keys */\n\tContextKeyChannelId                ContextKey = \"channel_id\"\n\tContextKeyChannelName              ContextKey = \"channel_name\"\n\tContextKeyChannelCreateTime        ContextKey = \"channel_create_time\"\n\tContextKeyChannelBaseUrl           ContextKey = \"base_url\"\n\tContextKeyChannelType              ContextKey = \"channel_type\"\n\tContextKeyChannelSetting           ContextKey = \"channel_setting\"\n\tContextKeyChannelOtherSetting      ContextKey = \"channel_other_setting\"\n\tContextKeyChannelParamOverride     ContextKey = \"param_override\"\n\tContextKeyChannelHeaderOverride    ContextKey = \"header_override\"\n\tContextKeyChannelOrganization      ContextKey = \"channel_organization\"\n\tContextKeyChannelAutoBan           ContextKey = \"auto_ban\"\n\tContextKeyChannelModelMapping      ContextKey = \"model_mapping\"\n\tContextKeyChannelStatusCodeMapping ContextKey = \"status_code_mapping\"\n\tContextKeyChannelIsMultiKey        ContextKey = \"channel_is_multi_key\"\n\tContextKeyChannelMultiKeyIndex     ContextKey = \"channel_multi_key_index\"\n\tContextKeyChannelKey               ContextKey = \"channel_key\"\n\n\tContextKeyAutoGroup           ContextKey = \"auto_group\"\n\tContextKeyAutoGroupIndex      ContextKey = \"auto_group_index\"\n\tContextKeyAutoGroupRetryIndex ContextKey = \"auto_group_retry_index\"\n\n\t/* user related keys */\n\tContextKeyUserId      ContextKey = \"id\"\n\tContextKeyUserSetting ContextKey = \"user_setting\"\n\tContextKeyUserQuota   ContextKey = \"user_quota\"\n\tContextKeyUserStatus  ContextKey = \"user_status\"\n\tContextKeyUserEmail   ContextKey = \"user_email\"\n\tContextKeyUserGroup   ContextKey = \"user_group\"\n\tContextKeyUsingGroup  ContextKey = \"group\"\n\tContextKeyUserName    ContextKey = \"username\"\n\n\tContextKeyLocalCountTokens ContextKey = \"local_count_tokens\"\n\n\tContextKeySystemPromptOverride ContextKey = \"system_prompt_override\"\n\tContextKeyEmptyCompletionInfo  ContextKey = \"empty_completion_info\"\n\n\t// ContextKeyFileSourcesToCleanup stores file sources that need cleanup when request ends\n\tContextKeyFileSourcesToCleanup ContextKey = \"file_sources_to_cleanup\"\n\n\t// ContextKeyAdminRejectReason stores an admin-only reject/block reason extracted from upstream responses.\n\t// It is not returned to end users, but can be persisted into consume/error logs for debugging.\n\tContextKeyAdminRejectReason ContextKey = \"admin_reject_reason\"\n\n\t// ContextKeyLanguage stores the user's language preference for i18n\n\tContextKeyLanguage ContextKey = \"language\"\n\tContextKeyIsStream ContextKey = \"is_stream\"\n\n\t// ContextKeyAuditLogged marks that the current request has already recorded\n\t// a structured audit log in the handler. AdminAuth/RootAuth use it to skip\n\t// fallback audit logging and avoid duplicate entries.\n\tContextKeyAuditLogged ContextKey = \"audit_logged\"\n\n\t// ContextKeyAuditWrapped marks that the response writer is already wrapped\n\t// for fallback admin audit logging. Nested AdminAuth/RootAuth middleware\n\t// must not install a second wrapper for the same request.\n\tContextKeyAuditWrapped ContextKey = \"audit_wrapped\"\n)\n```\n\n```go\ntype EndpointType string\n```\n\n```go\nconst (\n\tEndpointTypeOpenAI                EndpointType = \"openai\"\n\tEndpointTypeOpenAIResponse        EndpointType = \"openai-response\"\n\tEndpointTypeOpenAIResponseCompact EndpointType = \"openai-response-compact\"\n\tEndpointTypeOpenAIAlphaSearch     EndpointType = \"openai-alpha-search\"\n\tEndpointTypeAnthropic             EndpointType = \"anthropic\"\n\tEndpointTypeGemini                EndpointType = \"gemini\"\n\tEndpointTypeJinaRerank            EndpointType = \"jina-rerank\"\n\tEndpointTypeImageGeneration       EndpointType = \"image-generation\"\n\tEndpointTypeEmbeddings            EndpointType = \"embeddings\"\n\tEndpointTypeOpenAIVideo           EndpointType = \"openai-video\"\n)\n```\n\n```go\ntype MultiKeyMode string\n```\n\n```go\nconst (\n\tMultiKeyModeRandom  MultiKeyMode = \"random\"  // 随机\n\tMultiKeyModePolling MultiKeyMode = \"polling\" // 轮询\n)\n```\n\n```go\ntype TaskPlatform string\n```\n\n```go\nconst (\n\tTaskPlatformSuno       TaskPlatform = \"suno\"\n\tTaskPlatformMidjourney              = \"mj\"\n)\n```\n\n```go\ntype WaffoPayMethod struct {\n\tName          string `json:\"name\"`          // Frontend display name\n\tIcon          string `json:\"icon\"`          // Frontend icon identifier: credit-card, apple, google\n\tPayMethodType string `json:\"payMethodType\"` // Waffo API PayMethodType, can be comma-separated\n\tPayMethodName string `json:\"payMethodName\"` // Waffo API PayMethodName, empty means auto-select by Waffo checkout\n}\n```\nWaffoPayMethod defines the display and API parameter mapping for Waffo payment methods.\n\n","path":"github.com/MAX-API-Next/MAX-API/constant","name":"constant","synopsis":"","isRedistributable":true}
