mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-05-23 04:39:53 +08:00
fix(handlers): remove handling of unsupported n parameter in OpenAI image handlers
This commit is contained in:
@@ -383,9 +383,11 @@ func (h *OpenAIAPIHandler) imagesEditsFromMultipart(c *gin.Context) {
|
||||
if v := strings.TrimSpace(c.PostForm("partial_images")); v != "" {
|
||||
tool, _ = sjson.SetBytes(tool, "partial_images", parseIntField(v, 0))
|
||||
}
|
||||
if v := strings.TrimSpace(c.PostForm("n")); v != "" {
|
||||
tool, _ = sjson.SetBytes(tool, "n", parseIntField(v, 0))
|
||||
}
|
||||
|
||||
// Unsupported parameter
|
||||
// if v := strings.TrimSpace(c.PostForm("n")); v != "" {
|
||||
// tool, _ = sjson.SetBytes(tool, "n", parseIntField(v, 0))
|
||||
// }
|
||||
|
||||
if maskDataURL != nil && strings.TrimSpace(*maskDataURL) != "" {
|
||||
tool, _ = sjson.SetBytes(tool, "input_image_mask.image_url", strings.TrimSpace(*maskDataURL))
|
||||
|
||||
Reference in New Issue
Block a user