midjourney.go 1.3 KB

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