feat(llm): cache-policy auto-placement (#26786)

This commit is contained in:
Kit Langton
2026-05-10 22:09:55 -04:00
committed by GitHub
parent ce66b191d1
commit 942630eb4a
13 changed files with 721 additions and 5 deletions
@@ -28,7 +28,12 @@ const recorded = recordedTests({
provider: "anthropic",
protocol: "anthropic-messages",
requires: ["ANTHROPIC_API_KEY"],
options: { redactor: Redactor.defaults({ requestHeaders: { allow: ["content-type", "anthropic-version"] } }) },
// Two identical requests in one cassette — match by recording order so the
// second call replays the cached-hit interaction.
options: {
dispatch: "sequential",
redactor: Redactor.defaults({ requestHeaders: { allow: ["content-type", "anthropic-version"] } }),
},
})
describe("Anthropic Messages cache recorded", () => {