Replies: 2 comments
-
I've created Pull Request #6956 to resolve this conversation. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing this, as it has been resolved with #6956 - Just waiting for the next release. Thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
Amazon Bedrock supports text, images and documents in their Converse API.
Currently, langchainjs only supports the following MessageContent:
text
image_url
It appears that the langchain-aws (the python version), has added support for both of these message content types:
I propose to add support for these message content types in the ChatBedrockConverse.
Motivation
My motivation(s) to add support for these message content types in the ChatBedrockConverse are:
Proposal (If applicable)
Step 1: Add Support for document and image
In the file libs/langchain-aws/src/common.ts, add support for
block.type === 'document' || block.type === 'image'
See this commit for full file details
Step 2: Invoke client with Human Messages
Document Example: (working)
Image Example: (working)
Beta Was this translation helpful? Give feedback.
All reactions