fix(relay): correct image quality parameter handling (#5103)
This commit is contained in:
parent
583da45296
commit
2a528d46cb
@ -140,9 +140,9 @@ func ImageHelper(c *gin.Context, info *relaycommon.RelayInfo) (newAPIError *type
|
|||||||
usage.(*dto.Usage).PromptTokens = 1
|
usage.(*dto.Usage).PromptTokens = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
quality := "standard"
|
quality := request.Quality
|
||||||
if request.Quality == "hd" {
|
if quality == "" {
|
||||||
quality = "hd"
|
quality = "standard"
|
||||||
}
|
}
|
||||||
|
|
||||||
var logContent []string
|
var logContent []string
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user