mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-17 07:56:38 +08:00
51 lines
1.5 KiB
Go
51 lines
1.5 KiB
Go
package constant
|
|
|
|
var MjNotifyEnabled = false
|
|
var MjAccountFilterEnabled = false
|
|
var MjModeClearEnabled = false
|
|
var MjForwardUrlEnabled = true
|
|
var MjActionCheckSuccessEnabled = true
|
|
|
|
const (
|
|
MjErrorUnknown = 5
|
|
MjRequestError = 4
|
|
)
|
|
|
|
const (
|
|
MjActionImagine = "IMAGINE"
|
|
MjActionDescribe = "DESCRIBE"
|
|
MjActionBlend = "BLEND"
|
|
MjActionUpscale = "UPSCALE"
|
|
MjActionVariation = "VARIATION"
|
|
MjActionReRoll = "REROLL"
|
|
MjActionInPaint = "INPAINT"
|
|
MjActionModal = "MODAL"
|
|
MjActionZoom = "ZOOM"
|
|
MjActionCustomZoom = "CUSTOM_ZOOM"
|
|
MjActionShorten = "SHORTEN"
|
|
MjActionHighVariation = "HIGH_VARIATION"
|
|
MjActionLowVariation = "LOW_VARIATION"
|
|
MjActionPan = "PAN"
|
|
MjActionSwapFace = "SWAP_FACE"
|
|
MjActionUpload = "UPLOAD"
|
|
)
|
|
|
|
var MidjourneyModel2Action = map[string]string{
|
|
"mj_imagine": MjActionImagine,
|
|
"mj_describe": MjActionDescribe,
|
|
"mj_blend": MjActionBlend,
|
|
"mj_upscale": MjActionUpscale,
|
|
"mj_variation": MjActionVariation,
|
|
"mj_reroll": MjActionReRoll,
|
|
"mj_modal": MjActionModal,
|
|
"mj_inpaint": MjActionInPaint,
|
|
"mj_zoom": MjActionZoom,
|
|
"mj_custom_zoom": MjActionCustomZoom,
|
|
"mj_shorten": MjActionShorten,
|
|
"mj_high_variation": MjActionHighVariation,
|
|
"mj_low_variation": MjActionLowVariation,
|
|
"mj_pan": MjActionPan,
|
|
"swap_face": MjActionSwapFace,
|
|
"mj_upload": MjActionUpload,
|
|
}
|