@ai-sdk/google 4.0.76 → 4.0.78
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 +15 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/package.json +3 -3
- package/src/convert-to-google-messages.ts +5 -1
- package/src/google-image-model.ts +1 -0
- package/src/google-prompt.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/google",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.78",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@ai-sdk/provider": "4.0.
|
|
39
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
38
|
+
"@ai-sdk/provider": "4.0.18",
|
|
39
|
+
"@ai-sdk/provider-utils": "5.0.46"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@ai-sdk/test-server": "2.0.1",
|
|
@@ -286,7 +286,11 @@ export function convertToGoogleMessages(
|
|
|
286
286
|
parts.push({
|
|
287
287
|
fileData: {
|
|
288
288
|
mimeType: resolveFullMediaType({ part }),
|
|
289
|
-
fileUri:
|
|
289
|
+
fileUri:
|
|
290
|
+
part.data.url.protocol === 'gs:' &&
|
|
291
|
+
part.data.originalUrl != null
|
|
292
|
+
? part.data.originalUrl
|
|
293
|
+
: part.data.url.toString(),
|
|
290
294
|
},
|
|
291
295
|
});
|
|
292
296
|
break;
|
package/src/google-prompt.ts
CHANGED
|
@@ -81,6 +81,7 @@ export interface GoogleProviderMetadata {
|
|
|
81
81
|
urlContextMetadata: GoogleUrlContextMetadata | null;
|
|
82
82
|
safetyRatings: GoogleSafetyRating[] | null;
|
|
83
83
|
usageMetadata: GoogleUsageMetadata | null;
|
|
84
|
+
finishReason?: string | null;
|
|
84
85
|
finishMessage: string | null;
|
|
85
86
|
serviceTier: string | null;
|
|
86
87
|
}
|