feat(openai): pass through code_interpreter tool in Responses API#789
Merged
mikehostetler merged 1 commit intoJun 25, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds minimal Code Interpreter passthrough support to ReqLLM's OpenAI Responses API provider.
Callers can now pass
%{"type" => "code_interpreter", "container" => ...}intools:and ReqLLM will forward the tool map unchanged to OpenAI.Raw
code_interpreter_*output items (code_interpreter_call,code_interpreter_logs,code_interpreter_interpretation, etc.) can be accessed inresponse.provider_meta["code_interpreter"]["items"]and are excluded from normal text/function tool-call extraction.Both object containers (
%{"type" => "auto", "memory_limit" => "4g"}) and explicit string container IDs ("cntr_abc123") are supported.Notes:
ChatCompletionFunctionToolParam) only supportstype: "function", so code_interpreter is not supported there.ReqLLM.Providers.OpenAI.ResponsesAPI, so this change will passcode_interpreterthrough automatically. However, Azure OpenAI's Responses API may not expose Code Interpreter; I am unable to confirm this through the docs though. I am working on trying to test it.Type of Change
Breaking Changes
Testing
mix test)mix quality)Live verification:
Screen.Recording.2026-06-23.at.3.16.58.PM.mov
Checklist
CHANGELOG.md(it is auto-generated by git_ops)