400 - Bad Request on Vision #353
Unanswered
taylorbrown2686
asked this question in
Q&A
Replies: 1 comment
-
You'll need to give more information, for example the query/API request you send the model, and the full response Json as well as example code. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Report
Overview
When trying to submit an image for processing to the 4o model, a 400 error is returned as the URI submitted is not in the proper format for the OpenAI API.
I have checked the documentation and seen that this is the preferred way to pass in a Texture2D. I have also tried to convert it to B64 and submit the string with the same result.
To Reproduce
ChatSession.chatMessages.Add(new Message(Role.System, new List<Content> { new Content(ContentType.Text, "Create a JSON object for the specified type of clothes on the image."), new Content(imageData) }));
Use the code above (chatMessages list not necessary), and notice the 400 error returned due to bad formatting.
Expected behavior
A response is given from GPT based on the image submitted.
Beta Was this translation helpful? Give feedback.
All reactions