change name
This commit is contained in:
parent
dbf103fd47
commit
02b20a0732
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue