Closed jacobtaunton closed 1 year ago
@jacobtaunton I ran into the same issue. You needed to update LangChain to get to talk to Bedrock, but now the history doesn't pass the "Bedrock Claude validation test". You can fix this by changing the order in the prompt history creation. See my pull request above.
@jacobtaunton I ran into the same issue. You needed to update LangChain to get to talk to Bedrock, but now the history doesn't pass the "Bedrock Claude validation test". You can fix this by changing the order in the prompt history creation. See my pull request above.
Confirmed your update fixed the issue, thanks for sharing!
I still get an error using the langchain version in the requirements.txt, but works correctly with 0.0.306 when using @jimburtoft update. langchain==0.0.279 line 196, in _call raise ValueError(f"Error raised by bedrock service: {e}") ValueError: Error raised by bedrock service: 'Bedrock' object has no attribute 'invoke_model'
Updated to the latest version of langchain and awscli. @jacobtaunton can you please try now. Thanks @jimburtoft for the fix!
Thanks @MithilShah & @jimburtoft issues is resolved.
When upgrading from LangChain 0.0.279 to 0.0.306 I am now seeing different errors being raised:
With 0.0.279:
With 0.0.306:
It seems like the recent LangChain versions are causing these new issues that need to be resolved.
Reproduction steps:
Others are also reporting this in #11220. Would appreciate if the dev team could take a look and identify a fix. Let me know if any other info is needed!