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 <noreply@anthropic.com>
This commit is contained in:
Nate 2026-02-24 18:08:13 -08:00
parent a7dcf8bd84
commit 697260712b

View file

@ -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",
},