You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched existing ideas and did not find a similar one
I added a very descriptive title
I've clearly described the feature request and motivation for it
Feature request
According to AWS Documentation, cache checkpoints are now supported by Claude 3.5 Haiku/Sonnet v2 as well as Amazon's Nova models. Cache checkpoints can be added to the system field for all of these models. However, langchain only supports strings for system messages, see here.
Motivation
My team has been given access to the new prompt caching feature, but we're unable to use it due to langchain's lack of support in the js library. A similar pull request has been made for adding cache checkpoints to the python lib.
Proposal (If applicable)
The system message validation needs to be updated to support the new cache checkpoint feature, then properly pass it along to Converse- I suspect it would already get passed along fine.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Checked
Feature request
According to AWS Documentation, cache checkpoints are now supported by Claude 3.5 Haiku/Sonnet v2 as well as Amazon's Nova models. Cache checkpoints can be added to the
system
field for all of these models. However, langchain only supports strings for system messages, see here.Motivation
My team has been given access to the new prompt caching feature, but we're unable to use it due to langchain's lack of support in the js library. A similar pull request has been made for adding cache checkpoints to the python lib.
Proposal (If applicable)
The system message validation needs to be updated to support the new cache checkpoint feature, then properly pass it along to Converse- I suspect it would already get passed along fine.
Beta Was this translation helpful? Give feedback.
All reactions