Commit 2a528d46 by 真的非她不可 Committed by GitHub

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

parent 583da452
...@@ -140,9 +140,9 @@ func ImageHelper(c *gin.Context, info *relaycommon.RelayInfo) (newAPIError *type ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment