Skip to content
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

Bug with providing imageURL and specifying response in json format #23663

Open
chinyeefan opened this issue Oct 28, 2024 · 0 comments
Open

Bug with providing imageURL and specifying response in json format #23663

chinyeefan opened this issue Oct 28, 2024 · 0 comments
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

Comments

@chinyeefan
Copy link

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 Image

My code is
Image

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!

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 28, 2024
@jhendrixMSFT jhendrixMSFT added OpenAI and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Oct 29, 2024
@github-actions github-actions bot added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants