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

@ai-sdk/google-vertex

Package Overview
Dependencies
Maintainers
0
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/google-vertex - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

28

./dist/index.js

@@ -296,10 +296,13 @@ "use strict";

async getArgs({
mode,
prompt,
mode,
maxTokens,
temperature,
topP,
topK,
frequencyPenalty,
presencePenalty,
stopSequences,
responseFormat,
seed,
maxTokens,
temperature,
topP,
headers

@@ -332,9 +335,17 @@ }) {

}
if (responseFormat != null && responseFormat.type !== "text") {
warnings.push({
type: "unsupported-setting",
setting: "responseFormat",
details: "JSON response format is not supported."
});
}
const generationConfig = {
// model specific settings:
topK: this.settings.topK,
topK: topK != null ? topK : this.settings.topK,
// standardized settings:
maxOutputTokens: maxTokens,
temperature,
topP
topP,
stopSequences
};

@@ -365,7 +376,2 @@ const type = mode.type;

}
case "object-grammar": {
throw new import_provider3.UnsupportedFunctionalityError({
functionality: "object-grammar mode"
});
}
default: {

@@ -372,0 +378,0 @@ const _exhaustiveCheck = type;

@@ -12,2 +12,4 @@ import { VertexAI, VertexInit } from '@google-cloud/vertexai';

Models running with nucleus sampling don't allow topK setting.
@deprecated use the topK setting on the request instead.
*/

@@ -14,0 +16,0 @@ topK?: number;

@@ -296,10 +296,13 @@ "use strict";

async getArgs({
mode,
prompt,
mode,
maxTokens,
temperature,
topP,
topK,
frequencyPenalty,
presencePenalty,
stopSequences,
responseFormat,
seed,
maxTokens,
temperature,
topP,
headers

@@ -332,9 +335,17 @@ }) {

}
if (responseFormat != null && responseFormat.type !== "text") {
warnings.push({
type: "unsupported-setting",
setting: "responseFormat",
details: "JSON response format is not supported."
});
}
const generationConfig = {
// model specific settings:
topK: this.settings.topK,
topK: topK != null ? topK : this.settings.topK,
// standardized settings:
maxOutputTokens: maxTokens,
temperature,
topP
topP,
stopSequences
};

@@ -365,7 +376,2 @@ const type = mode.type;

}
case "object-grammar": {
throw new import_provider3.UnsupportedFunctionalityError({
functionality: "object-grammar mode"
});
}
default: {

@@ -372,0 +378,0 @@ const _exhaustiveCheck = type;

{
"name": "@ai-sdk/google-vertex",
"version": "0.0.16",
"version": "0.0.17",
"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",
"json-schema": "0.4.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

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