|
|
@@ -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) {
|