mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-10 16:13:42 +08:00
feat: 将操作拆分成单独的模型
This commit is contained in:
@@ -11,6 +11,7 @@ const (
|
||||
MjActionBlend = "BLEND"
|
||||
MjActionUpscale = "UPSCALE"
|
||||
MjActionVariation = "VARIATION"
|
||||
MjActionReRoll = "REROLL"
|
||||
MjActionInPaint = "INPAINT"
|
||||
MjActionInPaintPre = "INPAINT_PRE"
|
||||
MjActionZoom = "ZOOM"
|
||||
@@ -20,3 +21,20 @@ const (
|
||||
MjActionPan = "PAN"
|
||||
SwapFace = "SWAP_FACE"
|
||||
)
|
||||
|
||||
var MidjourneyModel2Action = map[string]string{
|
||||
"mj_imagine": MjActionImagine,
|
||||
"mj_describe": MjActionDescribe,
|
||||
"mj_blend": MjActionBlend,
|
||||
"mj_upscale": MjActionUpscale,
|
||||
"mj_variation": MjActionVariation,
|
||||
"mj_reroll": MjActionReRoll,
|
||||
"mj_inpaint": MjActionInPaint,
|
||||
"mj_inpaint_pre": MjActionInPaintPre,
|
||||
"mj_zoom": MjActionZoom,
|
||||
"mj_shorten": MjActionShorten,
|
||||
"mj_high_variation": MjActionHighVariation,
|
||||
"mj_low_variation": MjActionLowVariation,
|
||||
"mj_pan": MjActionPan,
|
||||
"swap_face": SwapFace,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user