@ai-sdk/amazon-bedrock
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -183,4 +183,7 @@ "use strict"; | ||
topP, | ||
topK, | ||
frequencyPenalty, | ||
presencePenalty, | ||
stopSequences, | ||
responseFormat, | ||
seed, | ||
@@ -216,2 +219,15 @@ headers | ||
} | ||
if (topK != null) { | ||
warnings.push({ | ||
type: "unsupported-setting", | ||
setting: "topK" | ||
}); | ||
} | ||
if (responseFormat != null && responseFormat.type !== "text") { | ||
warnings.push({ | ||
type: "unsupported-setting", | ||
setting: "responseFormat", | ||
details: "JSON response format is not supported." | ||
}); | ||
} | ||
const { system, messages } = await convertToBedrockChatMessages({ prompt }); | ||
@@ -225,3 +241,4 @@ const baseArgs = { | ||
temperature, | ||
topP | ||
topP, | ||
stopSequences | ||
}, | ||
@@ -262,7 +279,2 @@ messages | ||
} | ||
case "object-grammar": { | ||
throw new import_provider2.UnsupportedFunctionalityError({ | ||
functionality: "grammar-mode object generation" | ||
}); | ||
} | ||
default: { | ||
@@ -269,0 +281,0 @@ const _exhaustiveCheck = type; |
@@ -183,4 +183,7 @@ "use strict"; | ||
topP, | ||
topK, | ||
frequencyPenalty, | ||
presencePenalty, | ||
stopSequences, | ||
responseFormat, | ||
seed, | ||
@@ -216,2 +219,15 @@ headers | ||
} | ||
if (topK != null) { | ||
warnings.push({ | ||
type: "unsupported-setting", | ||
setting: "topK" | ||
}); | ||
} | ||
if (responseFormat != null && responseFormat.type !== "text") { | ||
warnings.push({ | ||
type: "unsupported-setting", | ||
setting: "responseFormat", | ||
details: "JSON response format is not supported." | ||
}); | ||
} | ||
const { system, messages } = await convertToBedrockChatMessages({ prompt }); | ||
@@ -225,3 +241,4 @@ const baseArgs = { | ||
temperature, | ||
topP | ||
topP, | ||
stopSequences | ||
}, | ||
@@ -262,7 +279,2 @@ messages | ||
} | ||
case "object-grammar": { | ||
throw new import_provider2.UnsupportedFunctionalityError({ | ||
functionality: "grammar-mode object generation" | ||
}); | ||
} | ||
default: { | ||
@@ -269,0 +281,0 @@ const _exhaustiveCheck = type; |
{ | ||
"name": "@ai-sdk/amazon-bedrock", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"license": "Apache-2.0", | ||
@@ -21,4 +21,4 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@ai-sdk/provider": "0.0.12", | ||
"@ai-sdk/provider-utils": "1.0.2", | ||
"@ai-sdk/provider": "0.0.13", | ||
"@ai-sdk/provider-utils": "1.0.3", | ||
"@aws-sdk/client-bedrock-runtime": "3.602.0" | ||
@@ -25,0 +25,0 @@ }, |
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
113274
1543
+ Added@ai-sdk/provider@0.0.13(transitive)
+ Added@ai-sdk/provider-utils@1.0.3(transitive)
- Removed@ai-sdk/provider@0.0.12(transitive)
- Removed@ai-sdk/provider-utils@1.0.2(transitive)
Updated@ai-sdk/provider@0.0.13
Updated@ai-sdk/provider-utils@1.0.3