Skip to content

feat(OpenAI): add support for apply_patch tool in Responses API - #794

Merged
iBotPeaches merged 9 commits into
openai-php:mainfrom
e4se:support-apply-patch
Jul 30, 2026
Merged

feat(OpenAI): add support for apply_patch tool in Responses API#794
iBotPeaches merged 9 commits into
openai-php:mainfrom
e4se:support-apply-patch

Conversation

@e4se

@e4se e4se commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

What:

  • Bug Fix
  • New Feature

Description:

Adds support for the Apply Patch tool in the Responses API.

The client now serializes apply_patch tool definitions and apply_patch_call_output items, and parses apply_patch_call items in regular, streamed, stored, and conversation responses. It supports create_file, update_file, and delete_file operations, including streamed operation diff delta and done events.

@iBotPeaches iBotPeaches left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cross checked params/payload against - https://developers.openai.com/api/docs/guides/tools-apply-patch

Seems a bit difficult to setup a real test, but it all looked fine from a static point of view.

Thanks!

@iBotPeaches
iBotPeaches merged commit 9b84990 into openai-php:main Jul 30, 2026
14 checks passed
@e4se
e4se deleted the support-apply-patch branch July 30, 2026 11:08
@e4se

e4se commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

I’ve been testing it in my project for several days with real API requests, including this tool in the request payload, and all event types have been handled correctly.

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