midjourney.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package constant
  2. const (
  3. MjErrorUnknown = 5
  4. MjRequestError = 4
  5. )
  6. const (
  7. MjActionImagine = "IMAGINE"
  8. MjActionDescribe = "DESCRIBE"
  9. MjActionBlend = "BLEND"
  10. MjActionUpscale = "UPSCALE"
  11. MjActionVariation = "VARIATION"
  12. MjActionReRoll = "REROLL"
  13. MjActionInPaint = "INPAINT"
  14. MjActionInPaintPre = "INPAINT_PRE"
  15. MjActionZoom = "ZOOM"
  16. MjActionShorten = "SHORTEN"
  17. MjActionHighVariation = "HIGH_VARIATION"
  18. MjActionLowVariation = "LOW_VARIATION"
  19. MjActionPan = "PAN"
  20. SwapFace = "SWAP_FACE"
  21. )
  22. var MidjourneyModel2Action = map[string]string{
  23. "mj_imagine": MjActionImagine,
  24. "mj_describe": MjActionDescribe,
  25. "mj_blend": MjActionBlend,
  26. "mj_upscale": MjActionUpscale,
  27. "mj_variation": MjActionVariation,
  28. "mj_reroll": MjActionReRoll,
  29. "mj_inpaint": MjActionInPaint,
  30. "mj_inpaint_pre": MjActionInPaintPre,
  31. "mj_zoom": MjActionZoom,
  32. "mj_shorten": MjActionShorten,
  33. "mj_high_variation": MjActionHighVariation,
  34. "mj_low_variation": MjActionLowVariation,
  35. "mj_pan": MjActionPan,
  36. "swap_face": SwapFace,
  37. }