New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ai-sdk/amazon-bedrock

Package Overview
Dependencies
Maintainers
2
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/amazon-bedrock - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

24

./dist/index.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc