Skip to content

Fixed a bug for "detail" attribute in input image #685

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DanieleMorotti
Copy link
Contributor

When an input image is given as input, the code tries to access the 'detail' key, that may not be present as noted in #159.

With this pull request, now it tries to access the key, otherwise set the value to None.
@pakrym-oai or @rm-openai let me know if you want any changes.

@therjawaji
Copy link

Hopefully it get's merged quickly. I've tested it out as well and it fixed my error and it works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants