From 0f6a8b87818ceb2e897d57aab3ecd6d0db6f7af6 Mon Sep 17 00:00:00 2001 From: AnotherCodeTrader <89056451+AnotherCodeTrader@users.noreply.github.com> Date: Sat, 2 Dec 2023 03:39:42 +0100 Subject: [PATCH] Update ImageService.cs Spotted a C/P bug on line 160; Size should be ResponseFormat. I can't compile the code in my Visual Studio to verify a clean change. --- Forge.OpenAI/Services/ImageService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Forge.OpenAI/Services/ImageService.cs b/Forge.OpenAI/Services/ImageService.cs index 0ab0930..317cab9 100644 --- a/Forge.OpenAI/Services/ImageService.cs +++ b/Forge.OpenAI/Services/ImageService.cs @@ -157,7 +157,7 @@ private async Task ImageEditHttpContentFactoryAsync(ImageEditReques content.Add(new StringContent(imageEditRequest.NumberOfEditedImages.ToString()), "n"); if (!string.IsNullOrWhiteSpace(imageEditRequest.Size)) content.Add(new StringContent(imageEditRequest.Size), "size"); - if (!string.IsNullOrWhiteSpace(imageEditRequest.ResponseFormat)) content.Add(new StringContent(imageEditRequest.Size), "response_format"); + if (!string.IsNullOrWhiteSpace(imageEditRequest.ResponseFormat)) content.Add(new StringContent(imageEditRequest.ResponseFormat), "response_format"); if (!string.IsNullOrWhiteSpace(imageEditRequest.User)) content.Add(new StringContent(imageEditRequest.User), "user"); return content;