From 02b20a07323c5e0528145f2b4678ea75c8bcecfa Mon Sep 17 00:00:00 2001 From: Jicheng Lu Date: Mon, 24 Jun 2024 18:41:23 -0500 Subject: [PATCH] change name --- .../BotSharp.OpenAPI/Controllers/InstructModeController.cs | 2 +- .../ViewModels/Instructs/ImageGenerationViewModel.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs b/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs index bcbd1e8a..700d4015 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs @@ -124,7 +124,7 @@ public class InstructModeController : ControllerBase new RoleDialogModel(AgentRole.User, input.Text) }); - imageViewModel.Content = message.Content; + imageViewModel.RevisedPrompt = message.Content; imageViewModel.Data = message.Data; return imageViewModel; } diff --git a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Instructs/ImageGenerationViewModel.cs b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Instructs/ImageGenerationViewModel.cs index 179c05f4..1dc3872d 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Instructs/ImageGenerationViewModel.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Instructs/ImageGenerationViewModel.cs @@ -4,9 +4,9 @@ namespace BotSharp.OpenAPI.ViewModels.Instructs; public class ImageGenerationViewModel { - [JsonPropertyName("content")] + [JsonPropertyName("revised_prompt")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] - public string? Content { get; set; } + public string? RevisedPrompt { get; set; } [JsonPropertyName("data")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]