Open
Description
Hi, I am trying to use Bedrock Deepseek R1 model via ChatBedrockConverse class, that wraps the boto3 Converse API.
Initially, I tested the related script in https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-deepseek.html
It seems that, boto3 API returns unexpexted keys in the response json:
[{'text': '\n\n1. **"Levitating" - Dua Lipa ft. DaBaby** \n2. **"Blinding Lights" - The Weeknd** \n3. **"Rolling in the Deep" - Adele**'}, {'SDK_UNKNOWN_MEMBER': {'name': 'reasoningContent'}}]
The SDK_UNKNOWN_MEMBER
key raises error in the _bedrock_to_lc
function in the implementation:
langchain-aws/libs/aws/langchain_aws/chat_models/bedrock_converse.py
Lines 1250 to 1257 in 1b61a6f
I am also opening a ticket to AWS support but is there any way to handle in the langchain implementation ?