Changesets · Branches · Tags · Compare
| Changeset | 57ba4ba8a78eafa828472f64f17d92d08e406b527820021879cab35e357dcd56 |
|---|---|
| Author | chezsmithy <chezsmithy@me.com> · 2025-09-09 08:49 -07:00 |
| Committer | chezsmithy <chezsmithy@me.com> · 2025-09-09 08:49 -07:00 |
| Parents | 174c272aba6c |
1 file changed
modified core/llm/llms/Bedrock.ts +1 −1
| @@ -513,7 +513,7 @@ | ||
| 513 | 513 | // The second-to-last because it retrieves potentially already cached contents, |
| 514 | 514 | // The last one because we want it cached for later retrieval. |
| 515 | 515 | // See: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html |
| 516 | - if (this.cacheBehavior?.cacheConversation) { | |
| 516 | + if (this.cacheBehavior?.cacheConversation || this.completionOptions.promptCaching) { | |
| 517 | 517 | this._addCachingToLastTwoUserMessages(converted); |
| 518 | 518 | } |
| 519 | 519 |