fix: Claude w/bedrock custom inference profile - caching support (#9838)

Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
This commit is contained in:
Stephen Collings
2026-01-21 16:42:13 +00:00
committed by GitHub
parent 178767af70
commit 0e1a8a1839
3 changed files with 58 additions and 0 deletions

View File

@@ -248,6 +248,8 @@ export namespace ProviderTransform {
model.providerID === "anthropic" ||
model.api.id.includes("anthropic") ||
model.api.id.includes("claude") ||
model.id.includes("anthropic") ||
model.id.includes("claude") ||
model.api.npm === "@ai-sdk/anthropic"
) {
msgs = applyCaching(msgs, model.providerID)