Browse Source

Fix: The edit interface is not billed (usage-based pricing).

xqx121 7 months ago
parent
commit
37caafc722
1 changed files with 3 additions and 0 deletions
  1. 3 0
      relay/relay-image.go

+ 3 - 0
relay/relay-image.go

@@ -41,6 +41,9 @@ func getAndValidImageRequest(c *gin.Context, info *relaycommon.RelayInfo) (*dto.
 				imageRequest.Quality = "standard"
 				imageRequest.Quality = "standard"
 			}
 			}
 		}
 		}
+		if imageRequest.N == 0 {
+			imageRequest.N = 1
+		}
 	default:
 	default:
 		err := common.UnmarshalBodyReusable(c, imageRequest)
 		err := common.UnmarshalBodyReusable(c, imageRequest)
 		if err != nil {
 		if err != nil {