BedrockChat Langchain Custom Integration not working #81
Labels
bug
Something isn't working
integrations
Adding support for third-party tools, agents, or services
library
Issues and enhancements directly related to the codebase of the library component of the project.
Is your request related to a problem? Please describe.
We're attempting to integrate AWS Bedrock into our application using the
BedrockChat
from@langchain/community/chat_models/bedrock
. However, we're encountering a dependency error that prevents the integration from working:This error suggests there's a mismatch between the AWS SDK dependencies, specifically involving the
@aws-sdk/credential-provider-node
and@smithy/shared-ini-file-loader
packages.Describe the solution you'd like
We need a solution that allows us to successfully integrate AWS Bedrock into our application without encountering dependency conflicts. This could involve:
Updating the
@langchain/community
package to use a version of AWS SDK that resolves this dependency issue.Providing clear documentation on which versions of AWS SDK packages are compatible with the Bedrock integration.
Offering an alternative method to configure AWS credentials that doesn't rely on the problematic dependencies.
Describe alternatives you've considered
package.json
, but this feels like a fragile solution.Additional context
We're using the following configuration for Bedrock:
To quickly test it clone this branch:
https://github.com/kaiban-ai/KaibanJS/tree/bedrock-integration
Then
https://github.com/kaiban-ai/KaibanJS/blob/bedrock-integration/playground/react/src/stories/LLMs.stories.js#L73
Uncomment the commented lines here...
https://github.com/kaiban-ai/KaibanJS/blob/bedrock-integration/playground/react/src/teams/llms/bedrock.js
The text was updated successfully, but these errors were encountered: