@depup/ai-sdk__google 4.0.48-depup.0 → 4.0.49-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/changes.json +1 -1
- package/dist/index.d.ts +18 -18
- package/dist/index.js +427 -544
- package/dist/index.js.map +1 -1
- package/docs/15-google.mdx +4 -57
- package/package.json +3 -3
- package/src/google-image-model-options.ts +12 -16
- package/src/google-image-model.ts +25 -166
- package/src/google-image-settings.ts +1 -5
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm install @depup/ai-sdk__google
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [@ai-sdk/google](https://www.npmjs.com/package/@ai-sdk/google) @ 4.0.
|
|
16
|
+
| Original | [@ai-sdk/google](https://www.npmjs.com/package/@ai-sdk/google) @ 4.0.49 |
|
|
17
17
|
| Processed | 2026-08-21 |
|
|
18
18
|
| Smoke test | failed |
|
|
19
19
|
| Deps updated | 0 |
|
package/changes.json
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
|
|
2
2
|
import { InferSchema, FetchFunction, WebSocketConstructor, WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@ai-sdk/provider-utils';
|
|
3
|
+
import { z } from 'zod/v4';
|
|
3
4
|
import * as _ai_sdk_provider from '@ai-sdk/provider';
|
|
4
5
|
import { ProviderV4, LanguageModelV4, ImageModelV4, EmbeddingModelV4, Experimental_VideoModelV4, Experimental_SpeechTranslationModelV4, SpeechModelV4, FilesV4, Experimental_RealtimeFactoryV4, Experimental_RealtimeModelV4, Experimental_RealtimeModelV4ClientSecretOptions, Experimental_RealtimeModelV4ClientSecretResult, Experimental_RealtimeModelV4ServerEvent, Experimental_RealtimeModelV4ClientEvent, Experimental_RealtimeModelV4SessionConfig, Experimental_SpeechTranslationModelV4StreamOptions } from '@ai-sdk/provider';
|
|
5
6
|
|
|
@@ -223,22 +224,21 @@ interface GoogleProviderMetadata {
|
|
|
223
224
|
serviceTier: string | null;
|
|
224
225
|
}
|
|
225
226
|
|
|
226
|
-
declare const
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}
|
|
241
|
-
type GoogleImageModelOptions = InferSchema<typeof googleImageModelOptionsSchema>;
|
|
227
|
+
declare const googleSearchToolArgsBaseSchema: z.ZodObject<{
|
|
228
|
+
searchTypes: z.ZodOptional<z.ZodObject<{
|
|
229
|
+
webSearch: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
230
|
+
imageSearch: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
|
+
timeRangeFilter: z.ZodOptional<z.ZodObject<{
|
|
233
|
+
startTime: z.ZodString;
|
|
234
|
+
endTime: z.ZodString;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
}, z.core.$loose>;
|
|
237
|
+
type GoogleSearchToolArgs = z.infer<typeof googleSearchToolArgsBaseSchema>;
|
|
238
|
+
|
|
239
|
+
type GoogleImageModelOptions = Omit<GoogleLanguageModelOptions, 'responseModalities'> & {
|
|
240
|
+
googleSearch?: GoogleSearchToolArgs;
|
|
241
|
+
};
|
|
242
242
|
|
|
243
243
|
type GoogleEmbeddingModelId = 'gemini-embedding-001' | 'gemini-embedding-2' | 'gemini-embedding-2-preview' | (string & {});
|
|
244
244
|
declare const googleEmbeddingModelOptions: _ai_sdk_provider_utils.LazySchema<{
|
|
@@ -504,10 +504,10 @@ declare const googleTools: {
|
|
|
504
504
|
}, {}>;
|
|
505
505
|
};
|
|
506
506
|
|
|
507
|
-
type GoogleImageModelId = '
|
|
507
|
+
type GoogleImageModelId = 'gemini-2.5-flash-image' | 'gemini-3-pro-image-preview' | 'gemini-3.1-flash-image-preview' | (string & {});
|
|
508
508
|
interface GoogleImageSettings {
|
|
509
509
|
/**
|
|
510
|
-
* Override the maximum number of images per call (default
|
|
510
|
+
* Override the maximum number of images per call (default 10)
|
|
511
511
|
*/
|
|
512
512
|
maxImagesPerCall?: number;
|
|
513
513
|
}
|