feat: AWS Bedrock SDK-compat handler - #205
Merged
Merged
Conversation
Add AWS Bedrock as a new service across all layers: portable Bedrock API, driver interface, in-memory AWS provider (seeded foundation-model catalog, synchronous customization-job lifecycle, family-aware emulated inference), and a restJson1 SDK-compat handler covering the control plane and bedrock-runtime InvokeModel/Converse. Real aws-sdk-go-v2 bedrock and bedrockruntime clients work end-to-end.
- InvokeModel on embedding models now returns an embedding-vector envelope instead of a text-generation shape - Anthropic InvokeModel responses get a unique message id - Reject duplicate custom-model names in CreateModelCustomizationJob
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.
Closes #160.
Summary
Adds AWS Bedrock as a new service across all layers, with end-to-end SDK compatibility for the real
aws-sdk-go-v2/service/bedrockand.../bedrockruntimeclients, plus the portable API.What's included
bedrock/):Bedrockwrapper with the standard cross-cutting concerns (recording, metrics, rate limiting, error injection, latency) and adriver.Bedrockinterface.providers/aws/bedrock/): in-memory implementation withserver/aws/bedrock/): restJson1 routing for the control plane (ListFoundationModels, GetFoundationModel, CreateModelCustomizationJob, Get/ListModelCustomizationJobs, ListCustomModels, GetCustomModel, DeleteCustomModel) and the runtime (InvokeModel, Converse). Registered before the S3 catch-all.Bedrockfield added to the AWS provider factory and the AWS serverDriversbundle.Tests
go build ./...,go test ./..., andgolangci-lint runall pass.