Skip to content

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.

@rjawaji1
Copy link

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

@rm-openai rm-openai merged commit 2c46dae into openai:main May 14, 2025
5 checks passed
KatHaruto pushed a commit to KatHaruto/openai-agents-python that referenced this pull request Jun 10, 2025
When an input image is given as input, the code tries to access the
'detail' key, that may not be present as noted in openai#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.
@DanieleMorotti DanieleMorotti deleted the fix_image_custom_provider branch July 29, 2025 15:01
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.

3 participants