Elffuss BraidHub

kikocis/continue public

fix: :ambulance: Fix bedrock conversation prompt caching
Changeset57ba4ba8a78eafa828472f64f17d92d08e406b527820021879cab35e357dcd56
Authorchezsmithy <chezsmithy@me.com> · 2025-09-09 08:49 -07:00
Committerchezsmithy <chezsmithy@me.com> · 2025-09-09 08:49 -07:00
Parents174c272aba6c

Browse the files at this changeset

1 file changed

modified core/llm/llms/Bedrock.ts +1 −1
@@ -513,7 +513,7 @@
513513 // The second-to-last because it retrieves potentially already cached contents,
514514 // The last one because we want it cached for later retrieval.
515515 // 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) {
517517 this._addCachingToLastTwoUserMessages(converted);
518518 }
519519