-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileResponse.Size should be nullable #203
Closed
chadcts opened this issue
Dec 7, 2023
· 4 comments
· Fixed by #204 or RageAgainstThePixel/com.openai.unity#140
Closed
FileResponse.Size should be nullable #203
chadcts opened this issue
Dec 7, 2023
· 4 comments
· Fixed by #204 or RageAgainstThePixel/com.openai.unity#140
Labels
bug
Something isn't working
Comments
So it didn't have a size? |
Did it not actually generate an image? |
StephenHodgson
changed the title
FileResponse causes exception when created from a GPT generated image.
FileResponse.Size should be nullable
Dec 7, 2023
Yes. That is the response I am getting whenever I ask the Assistant to draw
me an image. "bytes" are set to null.
Filename is a UUID also which is odd. But I implemented the change I
mentioned and was able to download a valid image file.
Could be a bug with OpenAI's API, but it causes an exception in this SDK.
…On Wed, Dec 6, 2023 at 10:15 PM Stephen Hodgson ***@***.***> wrote:
Did it not actually generate an image?
—
Reply to this email directly, view it on GitHub
<#203 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AURARKXBGH7Z5JQI3RGTHLDYIE7HJAVCNFSM6AAAAABAKMVE5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBUGI4TGOBUGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Chad Lowe
US Team Leader
M: (630) 363-6036
E: ***@***.*** ***@***.***>
W: www.Plus500.com
<https://www.google.com/url?q=https://www.plus500.com/&source=gmail-html&ust=1673381853064000&usg=AOvVaw1L-T2Yk0oYq_oKYdIkG2eh>
|
Also curious about what the expected encoding would even be |
This was
linked to
pull requests
Dec 7, 2023
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Overview
When dealing with GPT generated images (ContentType.ImageFile), the Json return Null for "bytes" which causes a Json deserialization exception.
To Reproduce
Steps to reproduce the behavior:
Additional context
OpenAI-DotNet/OpenAI-DotNet/Files/FileResponse.cs
Lines 42 to 44 in 0138115
Simple fix:
The text was updated successfully, but these errors were encountered: