feat: enable prompt caching and cache token tracking for google-vertex-anthropic (#20266)

Signed-off-by: Major Hayden <major@mhtx.net>
This commit is contained in:
Major Hayden
2026-03-31 15:16:14 -05:00
committed by GitHub
parent 4dd866d5c4
commit 26cc924ea2
4 changed files with 78 additions and 0 deletions

View File

@@ -280,6 +280,7 @@ export namespace ProviderTransform {
msgs = normalizeMessages(msgs, model, options)
if (
(model.providerID === "anthropic" ||
model.providerID === "google-vertex-anthropic" ||
model.api.id.includes("anthropic") ||
model.api.id.includes("claude") ||
model.id.includes("anthropic") ||