File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,9 +195,9 @@ export namespace ProviderTransform {
195195
196196 for ( const msg of unique ( [ ...system , ...final ] ) ) {
197197 const useMessageLevelOptions =
198- model . providerID === "anthropic" ||
199- model . providerID . includes ( "bedrock" ) ||
200- model . api . npm === "@ai-sdk/amazon-bedrock"
198+ model . providerID === "anthropic" ||
199+ model . providerID . includes ( "bedrock" ) ||
200+ model . api . npm === "@ai-sdk/amazon-bedrock"
201201 const shouldUseContentOptions = ! useMessageLevelOptions && Array . isArray ( msg . content ) && msg . content . length > 0
202202
203203 if ( shouldUseContentOptions ) {
Original file line number Diff line number Diff line change @@ -1657,7 +1657,7 @@ describe("ProviderTransform.message - bedrock caching with non-bedrock providerI
16571657 ] as any [ ]
16581658
16591659 const result = ProviderTransform . message ( msgs , model , { } ) as any [ ]
1660-
1660+
16611661 // Cache should be at the message level and not the content-part level
16621662 expect ( result [ 0 ] . providerOptions ?. bedrock ) . toEqual ( {
16631663 cachePoint : { type : "default" } ,
You can’t perform that action at this time.
0 commit comments