Browse Source

修改upscale倍率为五分之一

CaIon 2 years ago
parent
commit
72d23621f9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      controller/relay-mj.go

+ 3 - 0
controller/relay-mj.go

@@ -255,6 +255,9 @@ func relayMidjourneySubmit(c *gin.Context, relayMode int) *MidjourneyResponse {
 	userQuota, err := model.CacheGetUserQuota(userId)
 
 	sizeRatio := 1.0
+	if midjRequest.Action == "UPSCALE" {
+		sizeRatio = 0.2
+	}
 
 	quota := int(ratio * sizeRatio * 1000)