mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-30 07:06:38 +08:00
52 lines
1.3 KiB
Go
52 lines
1.3 KiB
Go
// Author: Calcium-Ion
|
|
// GitHub: https://github.com/Calcium-Ion/new-api
|
|
// Path: relay/constant/relay_mode.go
|
|
package midjourney
|
|
|
|
const (
|
|
RelayModeUnknown = iota
|
|
RelayModeMidjourneyImagine
|
|
RelayModeMidjourneyDescribe
|
|
RelayModeMidjourneyBlend
|
|
RelayModeMidjourneyChange
|
|
RelayModeMidjourneySimpleChange
|
|
RelayModeMidjourneyNotify
|
|
RelayModeMidjourneyTaskFetch
|
|
RelayModeMidjourneyTaskImageSeed
|
|
RelayModeMidjourneyTaskFetchByCondition
|
|
RelayModeAudioSpeech
|
|
RelayModeAudioTranscription
|
|
RelayModeAudioTranslation
|
|
RelayModeMidjourneyAction
|
|
RelayModeMidjourneyModal
|
|
RelayModeMidjourneyShorten
|
|
RelayModeMidjourneySwapFace
|
|
)
|
|
|
|
// Author: Calcium-Ion
|
|
// GitHub: https://github.com/Calcium-Ion/new-api
|
|
// Path: constant/midjourney.go
|
|
|
|
const (
|
|
MjErrorUnknown = 5
|
|
MjRequestError = 4
|
|
)
|
|
|
|
const (
|
|
MjActionImagine = "IMAGINE"
|
|
MjActionDescribe = "DESCRIBE"
|
|
MjActionBlend = "BLEND"
|
|
MjActionUpscale = "UPSCALE"
|
|
MjActionVariation = "VARIATION"
|
|
MjActionReRoll = "REROLL"
|
|
MjActionInPaint = "INPAINT"
|
|
MjActionModal = "MODAL"
|
|
MjActionZoom = "ZOOM"
|
|
MjActionCustomZoom = "CUSTOM_ZOOM"
|
|
MjActionShorten = "SHORTEN"
|
|
MjActionHighVariation = "HIGH_VARIATION"
|
|
MjActionLowVariation = "LOW_VARIATION"
|
|
MjActionPan = "PAN"
|
|
MjActionSwapFace = "SWAP_FACE"
|
|
)
|