Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

completions: AWS Bedrock integration#56321

Merged
eseliger merged 10 commits into
mainfrom
es/bedrock
Sep 13, 2023
Merged

completions: AWS Bedrock integration#56321
eseliger merged 10 commits into
mainfrom
es/bedrock

Conversation

@eseliger

@eseliger eseliger commented Aug 31, 2023

Copy link
Copy Markdown
Member

This adds experimental support for Claude via AWS Bedrock as the completions provider.

I added some experimental docs for it, and ran through it with a bunch of repos and queries, seems to be on-par with the Anthropic provider.

Test plan

Verified manually using our AWS deployment.

@cla-bot cla-bot Bot added the cla-signed label Aug 31, 2023
@eseliger eseliger changed the title Es/bedrock completions: AWS Bedrock integration Aug 31, 2023
@eseliger eseliger marked this pull request as ready for review September 12, 2023 00:34
@eseliger eseliger requested review from a team, chwarwick, philipp-spiess and ryphil September 12, 2023 00:35

@philipp-spiess philipp-spiess left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aziz

@chwarwick chwarwick left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice this looks pretty straight forward to me. Just curious about the anthropic.model vs the anthropic/model used in other places.

"cody.enabled": true,
"completions": {
"provider": "aws-bedrock",
"chatModel": "anthropic.claude-v2",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the anthropic. the format that bedrock uses? Would it make sense to keep it consistent with how the sourcegraph provider works with MODEL_PROVIDER/MODEL_NAME? I'm thinking about client needs where we want to pick the correct extension autocomplete provider based on the configured provider and model.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is the format they are using, it's what they show in their UI. I think it would be best to assume that the bedrock provider for now is always just anthropic. Would that work?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i think if it matches what they have in their ui it's easier for users to just copy that, and we can deal with it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants