@ai-sdk/google
Advanced tools
+6
-0
| # @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; |
+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; |
+1
-1
| { | ||
| "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; | ||
| } |
+15
-15
@@ -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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
955094
0.43%