Bug with providing imageURL and specifying response in json format #23663
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
OpenAI
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Bug Report
Go version = go1.22.0 darwin/amd64
azopenai version = v0.6.1
Hi there, I came across this issue when I'm playing around with model
gpt4 turbo-2024-04-09
.I added an image url in the request content and specified response format to be json, and I got response
My code is
However, when I commented out the
ResponseFormat
line or the image url content block, it's working perfectly fine. I'm currently adding an extra prompt to make the response in json format, but it would be nice if this issue could be solved since my program is heavily depends on the response format. Thanks a lot!The text was updated successfully, but these errors were encountered: