Skip to content

Commit d681fa0

Browse files
committed
Fix examples
1 parent 0d0d41b commit d681fa0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/Responses/Example08_OutputAdditionalProperties.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void Example08_OutputAdditionalProperties()
3030

3131
OpenAIResponse response = client.CreateResponse("Generate an image of gray tabby cat hugging an otter with an orange scarf", options);
3232
ImageGenerationCallResponseItem imageGenResponse = (ImageGenerationCallResponseItem)response.OutputItems[1];
33-
BinaryData bytes = imageGenResponse.ResultBytes;
33+
BinaryData bytes = imageGenResponse.ImageResultBytes;
3434

3535
using FileStream stream = File.OpenWrite($"{Guid.NewGuid()}.png");
3636
bytes.ToStream().CopyTo(stream);

examples/Responses/Example08_OutputAdditionalPropertiesAsync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public async Task Example08_OutputAdditionalPropertiesAsync()
3131

3232
OpenAIResponse response = await client.CreateResponseAsync("Generate an image of gray tabby cat hugging an otter with an orange scarf", options);
3333
ImageGenerationCallResponseItem imageGenResponse = (ImageGenerationCallResponseItem)response.OutputItems[1];
34-
BinaryData bytes = imageGenResponse.ResultBytes;
34+
BinaryData bytes = imageGenResponse.ImageResultBytes;
3535

3636
using FileStream stream = File.OpenWrite($"{Guid.NewGuid()}.png");
3737
bytes.ToStream().CopyTo(stream);

0 commit comments

Comments
 (0)