@ai-sdk/google 3.0.106 → 3.0.108
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 +14 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +4 -3
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +4 -3
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/google-error.ts +1 -0
- package/src/google-prepare-tools.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "@ai-sdk/provider-utils";
|
|
8
8
|
|
|
9
9
|
// src/version.ts
|
|
10
|
-
var VERSION = true ? "3.0.
|
|
10
|
+
var VERSION = true ? "3.0.108" : "0.0.0-test";
|
|
11
11
|
|
|
12
12
|
// src/google-generative-ai-embedding-model.ts
|
|
13
13
|
import {
|
|
@@ -37,7 +37,8 @@ var googleErrorDataSchema = lazySchema(
|
|
|
37
37
|
error: z.object({
|
|
38
38
|
code: z.number().nullable(),
|
|
39
39
|
message: z.string(),
|
|
40
|
-
status: z.string()
|
|
40
|
+
status: z.string(),
|
|
41
|
+
details: z.array(z.unknown()).nullish()
|
|
41
42
|
})
|
|
42
43
|
})
|
|
43
44
|
)
|
|
@@ -1219,7 +1220,7 @@ function prepareTools({
|
|
|
1219
1220
|
tools: [{ functionDeclarations }],
|
|
1220
1221
|
toolConfig: {
|
|
1221
1222
|
functionCallingConfig: {
|
|
1222
|
-
mode:
|
|
1223
|
+
mode: "ANY"
|
|
1223
1224
|
}
|
|
1224
1225
|
},
|
|
1225
1226
|
toolWarnings
|
|
@@ -1229,7 +1230,7 @@ function prepareTools({
|
|
|
1229
1230
|
tools: [{ functionDeclarations }],
|
|
1230
1231
|
toolConfig: {
|
|
1231
1232
|
functionCallingConfig: {
|
|
1232
|
-
mode:
|
|
1233
|
+
mode: "ANY",
|
|
1233
1234
|
allowedFunctionNames: [toolChoice.toolName]
|
|
1234
1235
|
}
|
|
1235
1236
|
},
|