@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/internal/index.js
CHANGED
|
@@ -571,7 +571,8 @@ var googleErrorDataSchema = (0, import_provider_utils2.lazySchema)(
|
|
|
571
571
|
error: import_v4.z.object({
|
|
572
572
|
code: import_v4.z.number().nullable(),
|
|
573
573
|
message: import_v4.z.string(),
|
|
574
|
-
status: import_v4.z.string()
|
|
574
|
+
status: import_v4.z.string(),
|
|
575
|
+
details: import_v4.z.array(import_v4.z.unknown()).nullish()
|
|
575
576
|
})
|
|
576
577
|
})
|
|
577
578
|
)
|
|
@@ -1011,7 +1012,7 @@ function prepareTools({
|
|
|
1011
1012
|
tools: [{ functionDeclarations }],
|
|
1012
1013
|
toolConfig: {
|
|
1013
1014
|
functionCallingConfig: {
|
|
1014
|
-
mode:
|
|
1015
|
+
mode: "ANY"
|
|
1015
1016
|
}
|
|
1016
1017
|
},
|
|
1017
1018
|
toolWarnings
|
|
@@ -1021,7 +1022,7 @@ function prepareTools({
|
|
|
1021
1022
|
tools: [{ functionDeclarations }],
|
|
1022
1023
|
toolConfig: {
|
|
1023
1024
|
functionCallingConfig: {
|
|
1024
|
-
mode:
|
|
1025
|
+
mode: "ANY",
|
|
1025
1026
|
allowedFunctionNames: [toolChoice.toolName]
|
|
1026
1027
|
}
|
|
1027
1028
|
},
|