[codex] Add Amazon Bedrock Responses support#1899
Draft
jim-openai wants to merge 1 commit into
Draft
Conversation
apcha-oai
reviewed
May 28, 2026
Contributor
|
(also just note will need to run prettier) |
4a52cdb to
ba16a5e
Compare
Author
|
Pushed simplified version |
apcha-oai
previously approved these changes
May 29, 2026
ba16a5e to
9349a20
Compare
Author
|
Updated after follow-up: ran Prettier and kept its touched README formatting; reran focused tests, ESLint, Prettier check, and build. Apologies that I could not complete the planned fresh manual Responses recheck: Bedrock |
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
BedrockOpenAIprovider clientReview Notes
OPENAI_API_KEY; it readsAWS_BEARER_TOKEN_BEDROCKunless the caller passesapiKeyorbedrockTokenProvider.responses.stream().finalResponse().output_text; a future core cleanup could make that generic instead of Bedrock-specific.Testing
17 passedREADME.mdus-east-2probes with refreshed Bedrock credentials:openai.gpt-5.5pass completed static bearer-token SSE and two token-providerresponses.createcalls/v1/modelsreturns200and listsopenai.gpt-5.4/openai.gpt-5.5/openai/v1/responsesand SDKresponses.createprobes return Bedrock500 internal_server_errorfor bothopenai.gpt-5.4andopenai.gpt-5.5; SDKs surface normalInternalServerErrorwith request ids, so no SDK workaround was addedResponsesWSstill passes through and AWS rejects the websocket handshake with HTTP405