You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I rechecked this against the current AWS interfaces before implementing it. Amazon Bedrock now exposes OpenAI-compatible Chat Completions and Responses endpoints on bedrock-runtime, in addition to the native Converse API:
That leaves an important provider-contract choice:
OpenAI-compatible first: add a Bedrock connection template using a region-specific /openai/v1 base URL and an Amazon Bedrock API key. This reuses DeepCode’s existing adapter and adds no boto3 dependency.
Native AWS first: add a Converse/ConverseStream adapter using the standard AWS credential chain (profiles, IAM roles, SSO/temporary credentials). This better matches enterprise AWS use, but adds a new backend, dependency, model discovery path, and tool-call conversion surface.
My preference for a focused first PR is option 1, with explicit documentation that SigV4/IAM-role authentication is not yet covered. If IAM roles/SSO are required for this issue’s intended workplace use, I’ll design the native adapter instead. Which contract do you want DeepCode to support first?
Thanks for checking the current AWS surface before writing code — that is the right call. Let's go with option 1, OpenAI-compatible first.
Some framing for the PR:
Today a Bedrock connection already works through the custom template (OpenAI-compatible backend with a user-supplied base URL and key), so the PR is really a template plus catalog work: a ProviderSpec for Bedrock with requires_api_base=True (the registry has no region placeholder, so the user supplies the region-specific /openai/v1 URL), the AWS_BEARER_TOKEN_BEDROCK key convention, catalog entries for the model IDs Bedrock actually exposes (anthropic.claude-…, the cross-region us./eu. prefixes), and a short guide section.
Please state in the docs that SigV4 / IAM roles / SSO are not covered by this first step; the native Converse adapter can be a separate discussion once the template has landed and people have tried it.
@wgong — if your teammate can review the template PR against your workplace setup, that would be very helpful.
Activity
lihuiyang1024 commentedon Sep 5, 2026
I rechecked this against the current AWS interfaces before implementing it. Amazon Bedrock now exposes OpenAI-compatible Chat Completions and Responses endpoints on
bedrock-runtime, in addition to the native Converse API:That leaves an important provider-contract choice:
/openai/v1base URL and an Amazon Bedrock API key. This reuses DeepCode’s existing adapter and adds no boto3 dependency.My preference for a focused first PR is option 1, with explicit documentation that SigV4/IAM-role authentication is not yet covered. If IAM roles/SSO are required for this issue’s intended workplace use, I’ll design the native adapter instead. Which contract do you want DeepCode to support first?
wgong commentedon Sep 5, 2026
Zongwei9888 commentedon Sep 6, 2026
Thanks for checking the current AWS surface before writing code — that is the right call. Let's go with option 1, OpenAI-compatible first.
Some framing for the PR:
customtemplate (OpenAI-compatible backend with a user-supplied base URL and key), so the PR is really a template plus catalog work: aProviderSpecfor Bedrock withrequires_api_base=True(the registry has no region placeholder, so the user supplies the region-specific/openai/v1URL), theAWS_BEARER_TOKEN_BEDROCKkey convention, catalog entries for the model IDs Bedrock actually exposes (anthropic.claude-…, the cross-regionus./eu.prefixes), and a short guide section.