Skip to content

Does langchain support prompt caching for AWS Bedrock? #30743

Answered by ccurme
Jeremiah-England asked this question in Q&A
Discussion options

You must be logged in to vote

It is implemented in ChatBedrock but not documented well! That's a great call out, will get that fixed. You can see the implementation in the PR here (you can add "cache_control": {"type": "ephemeral"} to content blocks just like ChatAnthropic).

For ChatBedrockConverse, there's an open issue: langchain-ai/langchain-aws#326

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jeremiah-England
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants