Skip to content

Commit 8b66296

Browse files
committed
Fix revised_prompt parameter name so it will be correctly deserialized.
1 parent 5f7c23a commit 8b66296

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: OpenAI_API/Images/ImageResult.cs

+5-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ public class Data
5151
[JsonProperty("b64_json")]
5252
public string Base64Data { get; set; }
5353

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

5960
}
6061
}

0 commit comments

Comments
 (0)