Skip to content
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

fix: AmazonBedrockChatGenerator with Claude raises moot warning for stream… #1205

Merged
merged 3 commits into from
Nov 21, 2024

Conversation

vblagoje
Copy link
Member

@vblagoje vblagoje commented Nov 21, 2024

This pull request includes a minor update to the prepare_body method in the amazon_bedrock integration. The change ensures compatibility with Anthropic by removing the unsupported stream keyword argument from inference_kwargs.

We need to leave "stream" kwarg as some other models like Cohere do require it and other LLM foundations models are able to tolerate its presence. We'll soon completely rewrite entire AmazonBedrockChatGenerator codebase to use Converse API anyway.

Note: I didn’t add any new tests but ran the existing ones on CI and locally (for Mistral) to review the logs. While adding new tests would typically be necessary for these fixes I skipped them in this case because we’re planning a complete rewrite of the Amazon Bedrock integration soon anyway.

@github-actions github-actions bot added the type:documentation Improvements or additions to documentation label Nov 21, 2024
@vblagoje vblagoje marked this pull request as ready for review November 21, 2024 10:17
@vblagoje vblagoje requested a review from a team as a code owner November 21, 2024 10:17
@vblagoje vblagoje requested review from shadeMe and removed request for a team November 21, 2024 10:17
@vblagoje vblagoje merged commit 028e2c3 into main Nov 21, 2024
10 checks passed
@vblagoje vblagoje deleted the ant_bd_fix branch November 21, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration:amazon-bedrock type:documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

irrelevant warning: AmazonBedrockChatGenerator with AnthropicClaude
2 participants