fix(relay): correct image quality parameter handling (#5103)

This commit is contained in:
真的非她不可 2026-05-25 22:57:02 +08:00 committed by GitHub
parent 583da45296
commit 2a528d46cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -140,9 +140,9 @@ func ImageHelper(c *gin.Context, info *relaycommon.RelayInfo) (newAPIError *type
usage.(*dto.Usage).PromptTokens = 1
}
quality := "standard"
if request.Quality == "hd" {
quality = "hd"
quality := request.Quality
if quality == "" {
quality = "standard"
}
var logContent []string