midjourney.go 1.5 KB

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