From 697260712b3cea088c19ad347bdb7c82416e5dcd Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 24 Feb 2026 18:08:13 -0800 Subject: [PATCH] fix: update anthropic adapter tests to expect cache_control on user messages The systemAndTools caching strategy now adds cache_control to the last two user messages via addCacheControlToLastTwoUserMessages(). Update existing test expectations to include the cache_control field. Co-Authored-By: Claude Opus 4.6 --- packages/openai-adapters/src/test/anthropic-adapter.vitest.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/openai-adapters/src/test/anthropic-adapter.vitest.ts b/packages/openai-adapters/src/test/anthropic-adapter.vitest.ts index dba75137c..7df5219cd 100644 --- a/packages/openai-adapters/src/test/anthropic-adapter.vitest.ts +++ b/packages/openai-adapters/src/test/anthropic-adapter.vitest.ts @@ -55,6 +55,7 @@ describe("Anthropic Adapter Tests", () => { role: "user", content: [ { + cache_control: { type: "ephemeral" }, type: "text", text: "hello", }, @@ -119,6 +120,7 @@ describe("Anthropic Adapter Tests", () => { role: "user", content: [ { + cache_control: { type: "ephemeral" }, type: "text", text: "hello", }, @@ -184,6 +186,7 @@ describe("Anthropic Adapter Tests", () => { role: "user", content: [ { + cache_control: { type: "ephemeral" }, type: "text", text: "hello", },