-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): Use Anthropic via Amazon Bedrock #268
base: main
Are you sure you want to change the base?
Conversation
@taylor-hudson is attempting to deploy a commit to the Antiwork Team on Vercel. A member of the Team first needs to authorize it. |
|
@@ -9,22 +10,36 @@ import { SYSTEM_PROMPT } from "./prompts"; | |||
import { AITools } from "./tools"; | |||
|
|||
export class AIClient { | |||
private client: Anthropic; | |||
private client: Anthropic | AnthropicBedrock; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing, Taylor!
One thing here: do Anthropic
and AnthropicBedrock
share different interfaces? If so, it will be nice to create abstract class around them to make our code more scalable when we decide add more AI clients?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a good idea. i wrote this commit originally for my personal fork but saw someone else wanted it as well.
if i have the time, ill implement this. thanks for the feedback!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice. we could actually merge this pr as is if it works as expected, and then you could open another pr with that impl if you have time
@taylor-hudson could you please sign the CLA so we can get this into review? |
Add AWS Bedrock Support
Adds support for using AWS Bedrock as an alternative to the direct Anthropic API.
Configuration
Direct Anthropic API (Default)
shortest.config.ts
AWS Bedrock
Existing implementations using direct Anthropic API will continue to work without changes.