-
Notifications
You must be signed in to change notification settings - Fork 150
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
AWS Bedrock support #379
Comments
Can you provide a link to their API documentation? |
...looking for a way to use just http requests but i'm not sure it's possible. |
I'm not familiar with AWS Bedrock. How do you access models (or other computation) running there? |
the easiest approaches are to use the aws cli on the command line or a python sdk. But i'm guessing what would be most convenient here is being able to send https requests with lisp. relevant? pokepay/aws-sdk-lisp#35 |
This is as close as i can find to the payload structure: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html On the command line one would would do:
|
This makes it seem like you can make http requests? Sorry, I'm not understanding how this service is structured. If you can make http requests I can add support for it to gptel. |
yes i think so. one could authenticate using environmental variables AWS_SESSION_TOKEN, AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID, AWS_REGION ...or just have the user enter them in during config. In my case i have to renew my credentials often for security reasons, so being able to update them without closing emacs and re-exporting the variables in the terminal would be a plus. |
Sorry, I don't follow how environment variables are relevant to making a http request. Is there a |
Curl has native support for the AWS signing method (see e.g. this article), so this should be possible. On a separate note, it would be nice to support CLI backends as well as REST HTTP backends, since then the work of actually calling a service can be offloaded to its native CLI tools ( Note since I'm AWS employed: The above is purely my own knowledge and opinions, and not communication on behalf of my employer. This also applies to all future communications in this thread unless explicitly specified otherwise. |
@swapneils Thank you for the pointer -- this should be possible now. @csheaff So this can be done using Curl, but someone will need to write an AWS bedrock backend for gptel. Unfortunately we can't inherit the OpenAI backend since the payload structure is different. PRs are welcome, you can copy |
thanks @karthink . I'll try to find some time but it might be tough. |
@karthink @csheaff Found this issue by accident. Maybe this will be useful for a future implementation >>> |
Hello, it would be grand to be able to use AWS models from Amazon Bedrock, such as Anthropic Claude Sonnet 3.5.
The text was updated successfully, but these errors were encountered: