Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@ai-sdk/google

Package Overview
Dependencies
Maintainers
3
Versions
375
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
3.0.14
to
3.0.15
+6
-0
CHANGELOG.md
# @ai-sdk/google
## 3.0.15
### Patch Changes
- 2c70b90: chore: update provider docs
## 3.0.14

@@ -4,0 +10,0 @@

+16
-16

@@ -166,3 +166,3 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';

/**
Override the maximum number of images per call (default 4)
* Override the maximum number of images per call (default 4)
*/

@@ -266,4 +266,4 @@ maxImagesPerCall?: number;

/**
Creates a model for image generation.
*/
* Creates a model for image generation.
*/
image(modelId: GoogleGenerativeAIImageModelId, settings?: GoogleGenerativeAIImageSettings): ImageModelV3;

@@ -294,23 +294,23 @@ /**

/**
Use a different URL prefix for API calls, e.g. to use proxy servers.
The default prefix is `https://generativelanguage.googleapis.com/v1beta`.
* Use a different URL prefix for API calls, e.g. to use proxy servers.
* The default prefix is `https://generativelanguage.googleapis.com/v1beta`.
*/
baseURL?: string;
/**
API key that is being send using the `x-goog-api-key` header.
It defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable.
* API key that is being send using the `x-goog-api-key` header.
* It defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable.
*/
apiKey?: string;
/**
Custom headers to include in the requests.
*/
* Custom headers to include in the requests.
*/
headers?: Record<string, string | undefined>;
/**
Custom fetch implementation. You can use it as a middleware to intercept requests,
or to provide a custom fetch implementation for e.g. testing.
*/
* Custom fetch implementation. You can use it as a middleware to intercept requests,
* or to provide a custom fetch implementation for e.g. testing.
*/
fetch?: FetchFunction;
/**
Optional function to generate a unique ID for each request.
*/
* Optional function to generate a unique ID for each request.
*/
generateId?: () => string;

@@ -324,7 +324,7 @@ /**

/**
Create a Google Generative AI provider instance.
* Create a Google Generative AI provider instance.
*/
declare function createGoogleGenerativeAI(options?: GoogleGenerativeAIProviderSettings): GoogleGenerativeAIProvider;
/**
Default Google Generative AI provider instance.
* Default Google Generative AI provider instance.
*/

@@ -331,0 +331,0 @@ declare const google: GoogleGenerativeAIProvider;

@@ -166,3 +166,3 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';

/**
Override the maximum number of images per call (default 4)
* Override the maximum number of images per call (default 4)
*/

@@ -266,4 +266,4 @@ maxImagesPerCall?: number;

/**
Creates a model for image generation.
*/
* Creates a model for image generation.
*/
image(modelId: GoogleGenerativeAIImageModelId, settings?: GoogleGenerativeAIImageSettings): ImageModelV3;

@@ -294,23 +294,23 @@ /**

/**
Use a different URL prefix for API calls, e.g. to use proxy servers.
The default prefix is `https://generativelanguage.googleapis.com/v1beta`.
* Use a different URL prefix for API calls, e.g. to use proxy servers.
* The default prefix is `https://generativelanguage.googleapis.com/v1beta`.
*/
baseURL?: string;
/**
API key that is being send using the `x-goog-api-key` header.
It defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable.
* API key that is being send using the `x-goog-api-key` header.
* It defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable.
*/
apiKey?: string;
/**
Custom headers to include in the requests.
*/
* Custom headers to include in the requests.
*/
headers?: Record<string, string | undefined>;
/**
Custom fetch implementation. You can use it as a middleware to intercept requests,
or to provide a custom fetch implementation for e.g. testing.
*/
* Custom fetch implementation. You can use it as a middleware to intercept requests,
* or to provide a custom fetch implementation for e.g. testing.
*/
fetch?: FetchFunction;
/**
Optional function to generate a unique ID for each request.
*/
* Optional function to generate a unique ID for each request.
*/
generateId?: () => string;

@@ -324,7 +324,7 @@ /**

/**
Create a Google Generative AI provider instance.
* Create a Google Generative AI provider instance.
*/
declare function createGoogleGenerativeAI(options?: GoogleGenerativeAIProviderSettings): GoogleGenerativeAIProvider;
/**
Default Google Generative AI provider instance.
* Default Google Generative AI provider instance.
*/

@@ -331,0 +331,0 @@ declare const google: GoogleGenerativeAIProvider;

{
"name": "@ai-sdk/google",
"version": "3.0.14",
"version": "3.0.15",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "sideEffects": false,

@@ -9,5 +9,5 @@ export type GoogleGenerativeAIImageModelId =

/**
Override the maximum number of images per call (default 4)
* Override the maximum number of images per call (default 4)
*/
maxImagesPerCall?: number;
}

@@ -35,4 +35,4 @@ import {

/**
Creates a model for image generation.
*/
* Creates a model for image generation.
*/
image(

@@ -75,4 +75,4 @@ modelId: GoogleGenerativeAIImageModelId,

/**
Use a different URL prefix for API calls, e.g. to use proxy servers.
The default prefix is `https://generativelanguage.googleapis.com/v1beta`.
* Use a different URL prefix for API calls, e.g. to use proxy servers.
* The default prefix is `https://generativelanguage.googleapis.com/v1beta`.
*/

@@ -82,4 +82,4 @@ baseURL?: string;

/**
API key that is being send using the `x-goog-api-key` header.
It defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable.
* API key that is being send using the `x-goog-api-key` header.
* It defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable.
*/

@@ -89,15 +89,15 @@ apiKey?: string;

/**
Custom headers to include in the requests.
*/
* Custom headers to include in the requests.
*/
headers?: Record<string, string | undefined>;
/**
Custom fetch implementation. You can use it as a middleware to intercept requests,
or to provide a custom fetch implementation for e.g. testing.
*/
* Custom fetch implementation. You can use it as a middleware to intercept requests,
* or to provide a custom fetch implementation for e.g. testing.
*/
fetch?: FetchFunction;
/**
Optional function to generate a unique ID for each request.
*/
* Optional function to generate a unique ID for each request.
*/
generateId?: () => string;

@@ -113,3 +113,3 @@

/**
Create a Google Generative AI provider instance.
* Create a Google Generative AI provider instance.
*/

@@ -204,4 +204,4 @@ export function createGoogleGenerativeAI(

/**
Default Google Generative AI provider instance.
* Default Google Generative AI provider instance.
*/
export const google = createGoogleGenerativeAI();

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet