feat(gateway): support Responses Lite and GPT-6 Astra - #508
Open
Longtianmu wants to merge 36 commits into
Open
Conversation
# Conflicts: # packages/gateway/src/repo/models-cache-contract.ts
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.
Codex can select Responses Lite, where tool declarations and base instructions live in ordered input items. Treating those requests as standard Responses changes prompt identities and can lose tool configuration or history. This PR adds a metadata-selected Lite transport and extends GPT-6 Astra compatibility while keeping native requests and existing gateway state handling intact.
Responses Lite
GPT-6 Astra and WebSocket compatibility
generate: falseprewarm as chainable gateway state without an inference call. Handle WebSocket-only fields and connection limits at the socket boundary, including namedstream_idlanes, per-lane FIFO ordering, and concurrent lanes. Isolate per-turn authentication and prevent in-flight snapshot refreshes from undoing an eviction while retaining durable fallback.configuration_updateitems in native history. True mid-turnresponse.steeris outside this PR: it requires a provider duplex session, automatic successor responses, and independent endpoint capability evidence. Local prewarm does not promise upstream cache prefill.Protocol conversion and boundaries
Test Plan
ea1a6ca5: all eight jobs passed, including type generation, lint, full typecheck, all 5,905 tests in 553 files, installers, the three repository invariant checks, and the web production build with all four output assertions.