Skip to content

Commit

Permalink
Fix revised_prompt parameter name so it will be correctly deserialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
ernop committed Feb 21, 2024
1 parent 5f7c23a commit 8b66296
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions OpenAI_API/Images/ImageResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ public class Data
[JsonProperty("b64_json")]
public string Base64Data { get; set; }

/// <summary>
/// The prompt that was used to generate the image, if there was any revision to the prompt.
/// </summary>
public string RevisedPrompt { get; set; }
/// <summary>
/// The prompt that was used to generate the image, if there was any revision to the prompt.
/// </summary>
[JsonProperty("revised_prompt")]
public string RevisedPrompt { get; set; }

}
}

0 comments on commit 8b66296

Please sign in to comment.