Open Issues Need Help
View All on GitHubAI Summary: The task is to debug a LangChain.js integration with AWS Bedrock Claude. The issue is that custom metadata isn't being passed to the Bedrock invocation, despite being supported by both LangChain and the Bedrock SDK. The problem lies within LangChain's internal handling of metadata, specifically the deletion of the `metadata` property before the Bedrock call. A solution needs to be implemented that conditionally adds the metadata to the request, only when the underlying model supports it (like Bedrock Claude), without breaking compatibility with other models.
AI Summary: Extend the LangChain.js Groq integration (@langchain/groq) to support multimodal inputs, specifically images, enabling the processing of messages containing both text and image content. This requires modifying the `convertMessagesToGroqParams` function to handle non-string message content, likely by adding a check for image data and adapting the Groq query accordingly.