Skip to content

feat(OpenAI): Add 'Code Interpreter' support to Responses #610

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

Merged
merged 13 commits into from
Jun 23, 2025

Conversation

iBotPeaches
Copy link
Collaborator

@iBotPeaches iBotPeaches commented Jun 19, 2025

What:

  • Bug Fix
  • New Feature

Description:

Adds Code Interpreter support for Responses API

Related:

fixes: #586, closes #612


TODO

  • tests
  • output chunk
  • tool chunk
  • confirm streaming support or not

msitarzewski and others added 8 commits June 22, 2025 19:43
- `CreateStreamedResponse.php` - Added streaming support for code interpreter
- `OutputCodeInterpreterToolCall.php` - New file for code interpreter output handling
- `OutputMessageContentOutputTextAnnotationsContainerFile.php` - New file for container file annotations
- `OutputMessageContentOutputText.php` - Updated to support container file annotations
- `CodeInterpreterCall.php` - New streaming event handler
- `OutputTextAnnotationAdded.php` - New streaming event for text annotations
- `CodeInterpreterCodeDone.php` - New streaming event for code completion
- `CodeInterpreterCodeDelta.php` - New streaming event for code deltas
- `OutputItem.php` - Updated to handle code interpreter outputs
- `CodeInterpreterTool.php` - New tool type definition
… code interpreter responses

composer test now reports:
• 896 PHPUnit tests PASS
• Laravel Pint style PASS
• php-stan level passes with zero errors.
@iBotPeaches iBotPeaches marked this pull request as ready for review June 23, 2025 01:08
@iBotPeaches
Copy link
Collaborator Author

Confirmed working in a real life test with streams and without.

@iBotPeaches iBotPeaches added this to the v0.14.0 milestone Jun 23, 2025
@iBotPeaches iBotPeaches added the enhancement New feature or request label Jun 23, 2025
@iBotPeaches iBotPeaches merged commit 1d4002d into main Jun 23, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Responses] Support Code Interpreter Tool
2 participants