feat(provider-codex): support catalog-selected Responses Lite - #511
Open
M1k0t0 wants to merge 6 commits into
Open
feat(provider-codex): support catalog-selected Responses Lite#511M1k0t0 wants to merge 6 commits into
M1k0t0 wants to merge 6 commits into
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.
Summary
Add provider-side Responses Lite support for Codex while preserving Floway's Standard Responses interface.
use_responses_litecapability.functionsnamespaces, and scoped image-detail removal. Preserve stable prefix identities for replay without mutating the caller's request.0.154.0, including the User-Agent, catalogclient_version, and version headers.Compatibility
Models with absent or false Lite capability continue to use Standard Responses. Malformed capability metadata fails before dispatch; upstream Lite failures do not silently fall back to Standard.
The Lite encoder retains unknown request fields and leaves search-loaded tool declarations in place while indexing their callable identities. Compact restoration replaces only matching generated prefixes, preserving caller-owned lookalikes, history, and opaque items.
Successful Lite stream responses hide the private mode marker. Non-OK upstream responses retain their original status, headers, and body.
Bump the model catalog revision from 10 to 11 so existing caches refresh the new private capability metadata. The capability survives persistence without appearing in public model responses.
Scope
This PR is independently based on
main. It implements the Codex provider's upstream wire representation, not gateway-side Lite client ingress/egress or source-item continuation persistence.Test coverage
Added or expanded regression coverage for: