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

irrelevant warning: AmazonBedrockChatGenerator with AnthropicClaude #1113

Open
Nathan-Kr opened this issue Sep 26, 2024 · 0 comments · May be fixed by #1114
Open

irrelevant warning: AmazonBedrockChatGenerator with AnthropicClaude #1113

Nathan-Kr opened this issue Sep 26, 2024 · 0 comments · May be fixed by #1114
Labels

Comments

@Nathan-Kr
Copy link

Using AmazonBedrockChatGenerator in a pipeline cause the following warning;
{"event": "Parameter 'stream' is not allowed and will be ignored.", "level": "warning", "timestamp": "2024-09-26T16:26:40.966021Z", "lineno": 79, "module": "haystack_integrations.components.generators.amazon_bedrock.chat.adapters"}

Parameter is set here
removing the line seems to have no impact, and silent the warning.

Either it should not be set or added to the list of ALLOWED_PARAMS

Warning can be triggered with this code:

from haystack.dataclasses import ChatMessage
from haystack.utils import Secret
from haystack_integrations.components.generators.amazon_bedrock import AmazonBedrockChatGenerator

AmazonBedrockChatGenerator(
    model="anthropic.claude-3-haiku-20240307-v1:0",
    aws_region_name=Secret.from_token("eu-west-3")
).run([ChatMessage.from_user("Hello, how are you?")])

amazon-bedrock-haystack 1.0.2
haystack-ai 2.5.1
python 3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants