Repository navigation
feat: add custom request helper - #1431
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
markstuart-oai
approved these changes
Nov 20, 2026
markstuart-oai
left a comment
Contributor
There was a problem hiding this comment.
The helper reuses the configured transport, authentication, retry policy, and error handling. Path segments stay under the configured base URL, admin credentials require explicit selection, and the caller owns successful response cleanup.
yoni-oai
approved these changes
Nov 20, 2026
Merged
VitorEAFeliciano
pushed a commit
to Navegos/openai-java
that referenced
this pull request
Nov 28, 2026
Automated Release PR --- ## [4.112.0](openai/openai-java@v4.111.0...v4.112.0) (2026-11-23) ### Features * add automatic Chat Completions tool runner ([openai#1430](openai#1430)) ([889ce00](openai@889ce00)) * add custom request helper ([openai#1431](openai#1431)) ([4bd4b3c](openai@4bd4b3c)) * add vector-store polling and bulk upload helpers ([openai#1427](openai#1427)) ([a9c8024](openai@a9c8024)) * **api:** add spending limits to agent sessions ([openai#1436](openai#1436)) ([620425d](openai@620425d)) * expose request IDs on service errors ([openai#1429](openai#1429)) ([55c164c](openai@55c164c)) * normalize Responses history for replay ([openai#1428](openai#1428)) ([4f1ad88](openai@4f1ad88)) ### Bug Fixes * **api:** clarify when to omit completion choice count ([openai#1424](openai#1424)) ([2c2e249](openai@2c2e249)) * preserve streamed function calls and unblock stream close ([openai#1432](openai#1432)) ([adc9184](openai@adc9184)) ### Build System * bump actions/setup-java from 6.2.0 to 6.3.0 ([openai#1434](openai#1434)) ([7dc91df](openai@7dc91df)) * bump graalvm/setup-graalvm from 1.6.8 to 1.6.9 ([openai#1435](openai#1435)) ([781ad03](openai@781ad03)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: openai-sdks[bot] <284451331+openai-sdks[bot]@users.noreply.github.com>
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.
Java users currently need a separate HTTP stack to call endpoints without generated service methods. Add a handwritten
CustomRequestshelper that captures an existing client's configuration and dispatches relative-path requests through its authentication, retry, timeout, and transport pipeline. It accepts JSON bodies and returns raw responses with standard SDK error mapping; callers own successful response cleanup.Paths retain the configured destination and base prefix. Request-level headers/query values override client defaults, and endpoint authentication can explicitly select the configured admin key while ordinary bearer auth remains the default. Includes documentation and a Java example. Scope is blocking requests; async dispatch, multipart, and typed response parsing remain outside this helper.
Validation: 29 synthetic tests pass on both Jackson runtimes, including a loopback HTTP integration test for path encoding, auth, query, and JSON serialization. Java example compiles; formatting and diff checks pass. Adversarial review completed with two consecutive clean rounds after adding explicit admin authentication selection.
Related to #678.