Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ai-sdk/google

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/google - npm Package Compare versions

Comparing version 1.0.0-canary.0 to 1.0.0-canary.1

10

./dist/index.js

@@ -659,7 +659,7 @@ "use strict";

constructor(options = {}) {
var _a, _b, _c;
this.baseURL = (_b = (0, import_provider_utils4.withoutTrailingSlash)((_a = options.baseURL) != null ? _a : options.baseUrl)) != null ? _b : "https://generativelanguage.googleapis.com/v1beta";
var _a, _b;
this.baseURL = (_a = (0, import_provider_utils4.withoutTrailingSlash)(options.baseURL)) != null ? _a : "https://generativelanguage.googleapis.com/v1beta";
this.apiKey = options.apiKey;
this.headers = options.headers;
this.generateId = (_c = options.generateId) != null ? _c : import_provider_utils4.generateId;
this.generateId = (_b = options.generateId) != null ? _b : import_provider_utils4.generateId;
}

@@ -760,4 +760,4 @@ get baseConfig() {

function createGoogleGenerativeAI(options = {}) {
var _a, _b;
const baseURL = (_b = (0, import_provider_utils6.withoutTrailingSlash)((_a = options.baseURL) != null ? _a : options.baseUrl)) != null ? _b : "https://generativelanguage.googleapis.com/v1beta";
var _a;
const baseURL = (_a = (0, import_provider_utils6.withoutTrailingSlash)(options.baseURL)) != null ? _a : "https://generativelanguage.googleapis.com/v1beta";
const getHeaders = () => ({

@@ -764,0 +764,0 @@ "x-goog-api-key": (0, import_provider_utils6.loadApiKey)({

# @ai-sdk/google
## 1.0.0-canary.1
### Major Changes
- 0d3d3f5: chore (providers): remove baseUrl option
### Patch Changes
- Updated dependencies [b1da952]
- @ai-sdk/provider-utils@2.0.0-canary.1
## 1.0.0-canary.0

@@ -4,0 +15,0 @@

@@ -97,6 +97,2 @@ import { LanguageModelV1, ProviderV1, EmbeddingModelV1 } from '@ai-sdk/provider';

/**
@deprecated Use `baseURL` instead.
*/
baseUrl?: string;
/**
API key that is being send using the `x-goog-api-key` header.

@@ -103,0 +99,0 @@ It defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable.

@@ -659,7 +659,7 @@ "use strict";

constructor(options = {}) {
var _a, _b, _c;
this.baseURL = (_b = (0, import_provider_utils4.withoutTrailingSlash)((_a = options.baseURL) != null ? _a : options.baseUrl)) != null ? _b : "https://generativelanguage.googleapis.com/v1beta";
var _a, _b;
this.baseURL = (_a = (0, import_provider_utils4.withoutTrailingSlash)(options.baseURL)) != null ? _a : "https://generativelanguage.googleapis.com/v1beta";
this.apiKey = options.apiKey;
this.headers = options.headers;
this.generateId = (_c = options.generateId) != null ? _c : import_provider_utils4.generateId;
this.generateId = (_b = options.generateId) != null ? _b : import_provider_utils4.generateId;
}

@@ -760,4 +760,4 @@ get baseConfig() {

function createGoogleGenerativeAI(options = {}) {
var _a, _b;
const baseURL = (_b = (0, import_provider_utils6.withoutTrailingSlash)((_a = options.baseURL) != null ? _a : options.baseUrl)) != null ? _b : "https://generativelanguage.googleapis.com/v1beta";
var _a;
const baseURL = (_a = (0, import_provider_utils6.withoutTrailingSlash)(options.baseURL)) != null ? _a : "https://generativelanguage.googleapis.com/v1beta";
const getHeaders = () => ({

@@ -764,0 +764,0 @@ "x-goog-api-key": (0, import_provider_utils6.loadApiKey)({

{
"name": "@ai-sdk/google",
"version": "1.0.0-canary.0",
"version": "1.0.0-canary.1",
"license": "Apache-2.0",

@@ -23,3 +23,3 @@ "sideEffects": false,

"@ai-sdk/provider": "1.0.0-canary.0",
"@ai-sdk/provider-utils": "2.0.0-canary.0"
"@ai-sdk/provider-utils": "2.0.0-canary.1"
},

@@ -26,0 +26,0 @@ "devDependencies": {

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