@ai-sdk/amazon-bedrock
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -46,8 +46,9 @@ "use strict"; | ||
case "system": { | ||
if (system != null) { | ||
if (messages.length > 0) { | ||
throw new import_provider.UnsupportedFunctionalityError({ | ||
functionality: "Multiple system messages" | ||
functionality: "System message after non-system message" | ||
}); | ||
} | ||
system = content; | ||
system = system === void 0 ? content : `${system} | ||
${content}`; | ||
break; | ||
@@ -54,0 +55,0 @@ } |
@@ -46,8 +46,9 @@ "use strict"; | ||
case "system": { | ||
if (system != null) { | ||
if (messages.length > 0) { | ||
throw new import_provider.UnsupportedFunctionalityError({ | ||
functionality: "Multiple system messages" | ||
functionality: "System message after non-system message" | ||
}); | ||
} | ||
system = content; | ||
system = system === void 0 ? content : `${system} | ||
${content}`; | ||
break; | ||
@@ -54,0 +55,0 @@ } |
{ | ||
"name": "@ai-sdk/amazon-bedrock", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112392
22705
1525
12
2