@ai-sdk/anthropic
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -56,3 +56,3 @@ "use strict"; | ||
function convertToAnthropicMessagesPrompt(prompt) { | ||
let system; | ||
let system = void 0; | ||
const messages = []; | ||
@@ -62,2 +62,7 @@ for (const { role, content } of prompt) { | ||
case "system": { | ||
if (system != null) { | ||
throw new import_provider.UnsupportedFunctionalityError({ | ||
functionality: "Multiple system messages" | ||
}); | ||
} | ||
system = content; | ||
@@ -64,0 +69,0 @@ break; |
@@ -56,3 +56,3 @@ "use strict"; | ||
function convertToAnthropicMessagesPrompt(prompt) { | ||
let system; | ||
let system = void 0; | ||
const messages = []; | ||
@@ -62,2 +62,7 @@ for (const { role, content } of prompt) { | ||
case "system": { | ||
if (system != null) { | ||
throw new import_provider.UnsupportedFunctionalityError({ | ||
functionality: "Multiple system messages" | ||
}); | ||
} | ||
system = content; | ||
@@ -64,0 +69,0 @@ break; |
{ | ||
"name": "@ai-sdk/anthropic", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"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
110459
1558