You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which means serializing and then deserializing will result in a different Generator with different behavior (e.g. if a user sets the temperature as a kwarg then this value will be "forgotten").
To Reproduce
Serialize a Bedrock generator using a kwarg and then deserialize.
Describe your environment (please complete the following information):
OS: [e.g. iOS] MacOS
Haystack version: 2.2
Integration version: 0.8.0
The text was updated successfully, but these errors were encountered:
Describe the bug
The Amazon Bedrock Generators init method allows for
kwargs
haystack-core-integrations/integrations/amazon_bedrock/src/haystack_integrations/components/generators/amazon_bedrock/generator.py
Lines 65 to 77 in 6aaf523
but in the
to_dict
method ignores these kwargshaystack-core-integrations/integrations/amazon_bedrock/src/haystack_integrations/components/generators/amazon_bedrock/generator.py
Lines 251 to 267 in 6aaf523
which means serializing and then deserializing will result in a different Generator with different behavior (e.g. if a user sets the
temperature
as akwarg
then this value will be "forgotten").To Reproduce
Serialize a Bedrock generator using a
kwarg
and then deserialize.Describe your environment (please complete the following information):
The text was updated successfully, but these errors were encountered: