Add Amazon Bedrock Mantle OpenAI Responses API sample - #727
Draft
proton0210 wants to merge 1 commit into
Draft
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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
bedrock-mantleendpointWhy
Amazon Bedrock supports OpenAI-compatible Models and Responses APIs through the regional Mantle endpoint, but this repository does not currently include a focused introductory sample for migrating an OpenAI Python SDK workflow to that endpoint.
The sample gives developers a single, reproducible path from secure client configuration through the major Responses API interaction modes. It does not provision AWS infrastructure.
Validation
%pipnotebook magicnbformat4.5 JSON with a Python kernel, no execution counts, and no saved outputsopenai==1.80.0, for all SDK parameters and response helpers used by the samplenbconvertand confirmed exact notebook/site content parity below the website front mattergit diff --checkLive inference was not executed because it requires a contributor-specific Amazon Bedrock API key and incurs model usage charges. The notebook validates model availability at runtime and fails with actionable configuration guidance before inference when the requested model is unavailable.
Repository baseline note
The complete repository-wide MkDocs build is currently blocked by pre-existing configuration/tag validation issues outside this change, beginning with disallowed tags in
docs/agents-and-function-calling/agent-code-interpreter/00_data_prep.md. The new page passes an isolated strict build and addsAPI-Usage-Exampleto the configured tag allowlist, matching the tag already used by the existing introductory API pages.Closes #726