Skip to content

fix(OpenAI): support web search image results and settings - #799

Open
e4se wants to merge 9 commits into
openai-php:mainfrom
e4se:parse-web-search-results
Open

fix(OpenAI): support web search image results and settings#799
e4se wants to merge 9 commits into
openai-php:mainfrom
e4se:parse-web-search-results

Conversation

@e4se

@e4se e4se commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

What:

  • Bug Fix
  • New Feature

Description:

Adds missing image search support to Responses API web search objects.

  • Parse optional web_search_call.results entries into typed OutputWebSearchToolCallResult objects.
  • Expose image URLs, source website URLs, thumbnails, and captions without dropping optional fields.
  • Parse search_content_types and image_settings from WebSearchTool.
  • Add typed support for max_results and caption image settings.
  • Add fixtures and tests for complete and optional payloads.

See the OpenAI documentation: Image search results.

Tests:

  • Unit test suite: 1,129 passed (5,109 assertions).
  • Code style checks passed.

@iBotPeaches

Copy link
Copy Markdown
Collaborator

minor formatting, but otherwise looks good

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