-
Notifications
You must be signed in to change notification settings - Fork 3.7k
feat: Integrate OpenAI Responses API to enable GPT-5 features #7891
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
Conversation
…h array operations for better performance
…nt in reasoning details
… on responses_api_2 to bring in Responses API work and merged updates
|
@sestinj bumping this for gpt 5 codex! |
|
@ferenci84 just double checking, this PR includes everything from #7073? Seems like besides the merge commits I pushed to #7073 it's the same, could I just close that one and merge this one or am I missing some nuance there? |
|
llm-index-merge-resolution.patch @ferenci84 mind taking a look at this patch to handle the merge conflict? If it's good let's apply it, once we get the conflict resolved I think this is good to merge 👍 |
- Resolved conflict in core/llm/index.ts - Integrated lastRequestId tracking with refactored Responses API methods - Added request ID tracking to openAIAdapterStream and openAIAdapterNonStream methods
Description
OpenAI Responses API integration to enable GPT‑5 features
This PR adds first-class support for the OpenAI Responses API (streaming and non‑streaming) and routes supported models (o‑series, GPT‑5) through it. The Responses API is required to fully use GPT‑5 features like native reasoning, structured output items, and robust tool calling.
What changed
Impact
No breaking changes for existing non‑o‑series models.
Please note that the changes was made on top of other PR changes #7073 as it contained changes required by this feature.
Related issues:
#5730
#7618
AI Code Review
@continue-general-reviewor@continue-detailed-reviewChecklist
Screen recording or screenshot
[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See this PR as a good example. ]
Tests
[ What tests were added or updated to ensure the changes work as expected? ]
Summary by cubic
Integrates the OpenAI Responses API to unlock GPT‑5 and o‑series features (reasoning, structured outputs, stronger tool calls) while keeping Chat Completions for legacy models. Improves streaming, logging, and UI/state to surface reasoning and tool metadata reliably.
New Features
Refactors