chore: generate

pull/18993/head
opencode-agent[bot] 2026-03-24 18:43:20 +00:00
parent 024979f3fd
commit e837dcc1c5
2 changed files with 4 additions and 4 deletions

View File

@ -195,9 +195,9 @@ export namespace ProviderTransform {
for (const msg of unique([...system, ...final])) {
const useMessageLevelOptions =
model.providerID === "anthropic" ||
model.providerID.includes("bedrock") ||
model.api.npm === "@ai-sdk/amazon-bedrock"
model.providerID === "anthropic" ||
model.providerID.includes("bedrock") ||
model.api.npm === "@ai-sdk/amazon-bedrock"
const shouldUseContentOptions = !useMessageLevelOptions && Array.isArray(msg.content) && msg.content.length > 0
if (shouldUseContentOptions) {

View File

@ -1657,7 +1657,7 @@ describe("ProviderTransform.message - bedrock caching with non-bedrock providerI
] as any[]
const result = ProviderTransform.message(msgs, model, {}) as any[]
// Cache should be at the message level and not the content-part level
expect(result[0].providerOptions?.bedrock).toEqual({
cachePoint: { type: "default" },