Skip to content
This repository was archived by the owner on May 31, 2026. It is now read-only.

Commit 6369442

Browse files
authored
Merge pull request #19 from abap-ai/3-aws-bedrock-support
AWS Bedrock support
2 parents f9f9ed0 + 05cdff7 commit 6369442

13 files changed

Lines changed: 714 additions & 4 deletions

.github/workflows/downport.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141

4242
- name: Check outputs
4343
if: ${{ steps.cpr.outputs.pull-request-number }}
44+
env:
45+
GH_TOKEN: ${{ secrets.PAT }}
4446
run: |
4547
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
4648
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Currently supported providers:
2626
- Google Vertex AI
2727
- Deepseek (structured output currently not supported)
2828
- Google Gemini API
29+
- AWS Bedrock via Converse API Endpoint
2930

3031
## Features
3132

@@ -87,10 +88,7 @@ In general for most parts interfaces are available to easily use custom implemen
8788
With the Beta release my focus is on using this library for further AI based topics (stay tuned) --> bug fixes have priority. Open a discussion or an issue if you have a specific requirement.
8889
Further features mid-term (check discord for short term plans and to discuss the current state):
8990

90-
- More providers:
91-
- AWS Bedrock
9291
- Workaround to force use required tool to simulate structured output where providers miss this feature (e.g. Azure AI Foundry)
93-
- Better UX for the settings and customizing tasks
9492
- Better error- and edge-case handling
9593
- Optional auto-retry for expected error cases (e.g. 429 HTTP Error)
9694
- Optimizations:

docs/ClientConfiguration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ The table has the following fields which can be maintained as customzing:
2121
For models the internal model name must follow the format: /{location}/publishers/{publisher}/models/{modelid}
2222
Example: /europe-west3/publishers/google/models/gemini-1.5-flash
2323

24+
### AWS Bedrock
25+
26+
Make sure to use proper model names, especially taking [cross-region](https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-support.html) inference profiles into account. Note that tool use currently seems flaky with differnt models using the converse API in a different way.
27+
2428
## Recommendations
2529

2630
Your feedback and experience is highly appreciated to extend this list:

docs/Provider.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,20 @@ Provider configuration via Transaction ZLLM_PROVIDER_CONFIG:
165165
- RFC Desitination: created above
166166
- Auth Type: A (API Key)
167167
- Auth Value: Paste the API Key
168+
169+
## [AWS Bedrock](https://aws.amazon.com/bedrock)
170+
171+
Create the SM59 destination type "G" with:
172+
173+
- HOST - use the endpoint as per [AWS Documentation](https://docs.aws.amazon.com/general/latest/gr/bedrock.html), e.g. bedrock.us-east-1.amazonaws.com
174+
- Port 443
175+
- Path Prefix /model
176+
- SSL Active & SSL Certificate as the usual SSL Client that has the required certificates (by default use the DFAUL SSL Client)
177+
- Special Options HTTP 1.1
178+
179+
Provider configuration via Transaction ZLLM_PROVIDER_CONFIG:
180+
181+
- Implementation Class: ZCL_LLM_CLIENT_AWS
182+
- RFC Desitination: created above
183+
- Auth Type: A (API Key)
184+
- Auth Value: {AWS Credential},{host from above},{region} for example credentialxyz,secret345345asdfsa,bedrock.us-east-1.amazonaws.com,us-east-1

src/aws/package.devc.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<abapGit version="v1.0.0" serializer="LCL_OBJECT_DEVC" serializer_version="v1.0.0">
3+
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
4+
<asx:values>
5+
<DEVC>
6+
<CTEXT>AWS Bedrock Client</CTEXT>
7+
</DEVC>
8+
</asx:values>
9+
</asx:abap>
10+
</abapGit>

0 commit comments

Comments
 (0)