fix: 🚑 Fix bedrock conversation prompt caching
This commit is contained in:
parent
b3f4b82600
commit
7725a6f018
1 changed files with 1 additions and 1 deletions
|
|
@ -513,7 +513,7 @@ class Bedrock extends BaseLLM {
|
|||
// The second-to-last because it retrieves potentially already cached contents,
|
||||
// The last one because we want it cached for later retrieval.
|
||||
// See: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html
|
||||
if (this.cacheBehavior?.cacheConversation) {
|
||||
if (this.cacheBehavior?.cacheConversation || this.completionOptions.promptCaching) {
|
||||
this._addCachingToLastTwoUserMessages(converted);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue