Files
new-api/constant/midjourney.go

51 lines
1.5 KiB
Go
Raw Normal View History

package constant
2024-03-14 21:21:37 +08:00
var MjNotifyEnabled = false
2024-05-01 01:37:47 +08:00
var MjAccountFilterEnabled = false
2024-04-06 22:59:23 +08:00
var MjModeClearEnabled = false
var MjForwardUrlEnabled = true
var MjActionCheckSuccessEnabled = true
2024-04-06 22:59:23 +08:00
const (
MjErrorUnknown = 5
MjRequestError = 4
)
const (
2024-03-13 18:26:16 +08:00
MjActionImagine = "IMAGINE"
MjActionDescribe = "DESCRIBE"
MjActionBlend = "BLEND"
MjActionUpscale = "UPSCALE"
MjActionVariation = "VARIATION"
MjActionReRoll = "REROLL"
2024-03-13 18:26:16 +08:00
MjActionInPaint = "INPAINT"
MjActionModal = "MODAL"
2024-03-13 18:26:16 +08:00
MjActionZoom = "ZOOM"
MjActionCustomZoom = "CUSTOM_ZOOM"
2024-03-13 18:26:16 +08:00
MjActionShorten = "SHORTEN"
MjActionHighVariation = "HIGH_VARIATION"
MjActionLowVariation = "LOW_VARIATION"
MjActionPan = "PAN"
2024-03-14 18:08:12 +08:00
MjActionSwapFace = "SWAP_FACE"
2024-07-31 15:48:51 +08:00
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,
2024-03-14 18:08:12 +08:00
"swap_face": MjActionSwapFace,
2024-07-31 15:48:51 +08:00
"mj_upload": MjActionUpload,
}