@ai-sdk/google 4.0.0-beta.34 → 4.0.0-beta.35
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 +8 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/google-generative-ai-files.ts +0 -2
- package/src/google-generative-ai-language-model.ts +1 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/google",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.35",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@ai-sdk/provider": "4.0.0-beta.10",
|
|
40
|
-
"@ai-sdk/provider-utils": "5.0.0-beta.
|
|
40
|
+
"@ai-sdk/provider-utils": "5.0.0-beta.18"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "20.17.24",
|
|
@@ -7,13 +7,11 @@ import {
|
|
|
7
7
|
} from '@ai-sdk/provider';
|
|
8
8
|
import {
|
|
9
9
|
combineHeaders,
|
|
10
|
-
convertUint8ArrayToBase64,
|
|
11
10
|
createJsonResponseHandler,
|
|
12
11
|
delay,
|
|
13
12
|
type FetchFunction,
|
|
14
13
|
lazySchema,
|
|
15
14
|
parseProviderOptions,
|
|
16
|
-
postJsonToApi,
|
|
17
15
|
zodSchema,
|
|
18
16
|
getFromApi,
|
|
19
17
|
} from '@ai-sdk/provider-utils';
|
|
@@ -42,10 +42,7 @@ import {
|
|
|
42
42
|
GoogleGenerativeAIModelId,
|
|
43
43
|
googleLanguageModelOptions,
|
|
44
44
|
} from './google-generative-ai-options';
|
|
45
|
-
import {
|
|
46
|
-
GoogleGenerativeAIContentPart,
|
|
47
|
-
GoogleGenerativeAIProviderMetadata,
|
|
48
|
-
} from './google-generative-ai-prompt';
|
|
45
|
+
import { GoogleGenerativeAIProviderMetadata } from './google-generative-ai-prompt';
|
|
49
46
|
import { prepareTools } from './google-prepare-tools';
|
|
50
47
|
import { GoogleJSONAccumulator, PartialArg } from './google-json-accumulator';
|
|
51
48
|
import { mapGoogleGenerativeAIFinishReason } from './map-google-generative-ai-finish-reason';
|
|
@@ -1415,17 +1412,10 @@ const responseSchema = lazySchema(() =>
|
|
|
1415
1412
|
),
|
|
1416
1413
|
);
|
|
1417
1414
|
|
|
1418
|
-
type ContentSchema = NonNullable<
|
|
1419
|
-
InferSchema<typeof responseSchema>['candidates'][number]['content']
|
|
1420
|
-
>;
|
|
1421
1415
|
export type GroundingMetadataSchema = NonNullable<
|
|
1422
1416
|
InferSchema<typeof responseSchema>['candidates'][number]['groundingMetadata']
|
|
1423
1417
|
>;
|
|
1424
1418
|
|
|
1425
|
-
type GroundingChunkSchema = NonNullable<
|
|
1426
|
-
GroundingMetadataSchema['groundingChunks']
|
|
1427
|
-
>[number];
|
|
1428
|
-
|
|
1429
1419
|
export type UrlContextMetadataSchema = NonNullable<
|
|
1430
1420
|
InferSchema<typeof responseSchema>['candidates'][number]['urlContextMetadata']
|
|
1431
1421
|
>;
|