-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[WIP] Use Amazon Bedrock Converse API to re-implementing Bedrock AI Models. #813
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
[WIP] Use Amazon Bedrock Converse API to re-implementing Bedrock AI Models. #813
Conversation
a96e2b9
to
68b544a
Compare
0efbb59
to
eeccd04
Compare
@tzolov Hi Christian, I'm basically finished re-implementing Bedrock AI models with the Amazon Bedrock Converse API. But there are some thing's I'd like to discuss.
|
eeccd04
to
49b3326
Compare
a3ad6d5
to
fde14fe
Compare
bc273da
to
6cb7439
Compare
cab722a
to
fb35a96
Compare
fb35a96
to
89f9c89
Compare
…nverseApi instead.
I hope so, This is a huge PR, Maybe we can review it by ourselves first to reduce the workload for the team members |
Hello @tzolov Any advice on this PR? |
e060a4d
to
0527909
Compare
Hi @maxjiang153, it's a pity that there is no news about this PR, maybe it's too big, I don't know.... Thanks all for the huge effort !! |
Hi @maxjiang153 , Thank you very much for the great (and big ;) contribution. Sorry for not reaching out earlier. We've been quite busy and lacking the manpower to review and address all PRs. The #813 has a hight priority for me and I hope to be able to jump on it soon. |
@tzolov As Amazon Bedrock is rapidly involved and the AI 21 Jamba model is just generally available, I wonder: should I keep moving on this PR to support this new model or wait for this PR to be merged and then create a new PR to support the new model? Check this out: https://aws.amazon.com/about-aws/whats-new/2024/06/ai21-labs-jamba-instruct-model-amazon-bedrock/ |
@maxjiang153 it would be great if you can update the PR with the latest changes in the project, so it can be easily reviewed by @tzolov. |
waiting .... |
@DEG-7 I see that maintaining this PR with upstream is heavy work, I'm not sure when team members will work on this PR, but I'll keep an eye out for when it will be reviewed or merged. |
Excuse me, are there any dates when this PR will be merged? |
I understand the difficulties keeping it up to date with main an appreciate the efforts. We have fallen behind in PR, in particular those around bedrock because we haven't had the time to wrap our head yet our the big changes going on. I apologize. The Alibaba models are important to the project and I do expect it to be part of the 1.0 release. I would like to make sorting out the bedrock story a priority for us after this M2 release. |
Hey @maxjiang153, First, apologies for the delay. You've put in a tremendous amount of work and we've been too slow to react. To a large extent, this is due to the size of this PR. Usually, PRs of this scope would never be merged in a single go. I've started exploring the Bedrock Converse API and also trying to check the code in your PR. My initial goal is to:
Please let me know if you're still interested in contributing to this work. |
Hi @tzolov, it's been a while. I still would like to contribute to this PR, and AWS has released lots of new models since this PR was created. However, with the Bedrock Converse API, all of the models have a very similar invoke method. I think implementing a new Let me know if you have any thoughts. |
This is great thank you.
Spring AI API has changed significantly as well. The function calling is different, chat-model, metadata ... . Now we have observation support. ..
I'm still exploring the Converse API. Looks like we will be able to reduce the implementation to a single |
Based on the Converse API and Converse Stream API definitions, all the models have the same request structure. The only differences are the In my original design, I kept So I'm thinking we could keep this conversion mechanism. It might work like this: Also, I wonder if I should continue working on this PR or if I should create a new PR instead. |
tbh |
@maxjiang153 - I've created PR #1650 with you as co-author. Type-safe options will be addressed in separate PRs. |
Nice work, I'll close this PR |
@maxjiang153 |
see: #809
Provide a new
BedrockConverseApi
for AI model chat usage.Re-implementing current chat models from
AbstractBedrockApi
to the Bedrock Converse API to reduce complexity.Re-implementing Bedrock chat model usage information: #605.
Support build-in exponential backoff: #759.
things todo:
BedrockRuntimeClient
andBedrockRuntimeAsyncClient
.