-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Add support for AWS Bedrock integration #5226
Comments
Thank you @Hama18, for start, you can take a look at the CONTRIBUTING.md for how to run tests locally. You can check with us when you are stuck. For API documentation, it would be good to have at least 1 runnable code block showing a hello world example. Would be good to also show a streaming example. The two examples from their official doc is great: https://docs.aws.amazon.com/code-library/latest/ug/python_3_bedrock-runtime_code_examples.html For dependency, add For unit test, create unit tests following those for the Azure AI client. Also create one that hits the actual endpoint but use |
It is also possible to use Semantic Kernel client adapter for AWS Bedrock models. See: https://microsoft.github.io/autogen/stable/reference/python/autogen_ext.models.semantic_kernel.html |
I apologize for any inconvenience, but I found that my requirements can be met with AWS Bedrock, which is compatible with OpenAI. From the discussion below, I learned that it can be called from OpenAIChatCompletionClient, and I have completed what I needed to do. If no further extension of Bedrock is necessary, please feel free to close this issue. |
Can you share your code? I still can not use bedrock model in autogen0.4 |
I apologize for the lack of explanation earlier. I am calling AWS Bedrock via Databricks' serving endpoint. Since the serving endpoint is OpenAI-compatible, I was able to invoke it using the My environment is autogen 0.4.1. |
Thanks, I can also call bedrock by using both OpenAI-compatible or Semantic Kernel client |
I am having some issues with using it through the agent approach. I can call the I am using Tried solely Bedrock and still did not work. |
Thanks for the tips. Would you like to help with creating a bedrock client? @Alex-Wenner-FHR |
I would be happy to help. Are those efforts already underway? I thought I had seen some related pull requests. I also am just generally asking if I am misunderstanding something... I am using the Semantic Kernal wrapper around bedrock but am not getting any errors or anything, I just never get responses from the assistant agents, in swarm, using bedrock... let me know if you have any thoughts! |
Without having access to your code I can't know for sure what happened. Could you use a separate GitHub discussion to post your code? |
What feature would you like to be added?
.autogen_ext.models.aws.BedrockChatCompletionClient
based on theChatCompletionClient
base class.AzureAIChatCompletionClient
for guidance.Why is this needed?
Benefits:
Additional Information:
I am willing to contribute to the development of this feature. Please provide any guidance or steps on how I might be able to assist in making this feature officially supported.
In my environment, the setting for model_info is not passed from the JSON file, so I confirmed the operation by directly passing the arguments in the source code.
Thank you for your time and consideration.
The text was updated successfully, but these errors were encountered: