[FEATURE]: Add Bedrock as inference provider
Is your feature request related to a problem? Please describe.
Currently there is no way to directly integrate with Bedrock provided models. AWS Bedrock is a strong provider that has a robust compliance with enterprise environments; but as a limitation, Shannon cannot integrate with AWS Bedrock.
Describe the solution you'd like
Addition of Bedrock support with minimum viable authorization support as:
- Authorize with bare AWS credentials
- Authorize with AWS Profiles and SSO
Also as inference:
- To be able to use Claude models.
Describe alternatives you've considered
- OpenRouter -> does not have straightforward AWS infra setup.
- Bedrock-mantle -> Still needs an IT setup on enterprise to authorize. The supported models are less promising yet.
Additional context
No response
We had a preliminary PR for this, but we realized that Bedrock uses different model names. That means we need to refactor and maintain two sets of model names: one for Bedrock and one for standard Anthropic. This is a more involved project than simply exposing Bedrock API support.
Also, we currently use only the Sonnet model, but we have already been doing internal work to use Haiku and Opus for tasks that are better suited to them. Because of that, it is not as simple as exposing a single model field as a parameter, but to maintain Bedrock specific mappings.
We are going to put this on the back burner for a bit until we have the bandwidth to pick it up. Thanks for your understanding.
Good news - we have a preliminary PR on this and will be merging to main after testing. https://github.com/KeygraphHQ/shannon/pull/177
Lovely! @keygraphVarun Let me know If I can help out anything on it.