minor change

This commit is contained in:
Jicheng Lu 2025-09-11 17:41:01 -05:00
parent e72a6b5021
commit 6e16aea535
2 changed files with 8 additions and 4 deletions

View file

@ -286,7 +286,7 @@ public class InstructModeController : ControllerBase
}
[HttpPost("/instruct/image-edit")]
public async Task<ImageGenerationViewModel> ImageEdit([FromBody] ImageEditRequest request)
public async Task<ImageGenerationViewModel> ImageEdit([FromBody] ImageEditFileRequest request)
{
var fileInstruct = _services.GetRequiredService<IFileInstructService>();
var state = _services.GetRequiredService<IConversationStateService>();

View file

@ -50,13 +50,17 @@ public class ImageEditRequest : InstructBaseRequest
[JsonPropertyName("text")]
public string Text { get; set; } = string.Empty;
[JsonPropertyName("file")]
public InstructFileModel? File { get; set; }
[JsonPropertyName("image_converter_provider")]
public string? ImageConverterProvider { get; set; } = "file-handler";
}
public class ImageEditFileRequest : ImageEditRequest
{
[JsonPropertyName("file")]
public InstructFileModel File { get; set; }
}
public class ImageMaskEditRequest : InstructBaseRequest
{
[JsonPropertyName("text")]