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:
parent
a7dcf8bd84
commit
697260712b
1 changed files with 3 additions and 0 deletions
|
|
@ -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",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue