@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.mjs
CHANGED
|
@@ -557,7 +557,8 @@ var googleErrorDataSchema = lazySchema(
|
|
|
557
557
|
error: z.object({
|
|
558
558
|
code: z.number().nullable(),
|
|
559
559
|
message: z.string(),
|
|
560
|
-
status: z.string()
|
|
560
|
+
status: z.string(),
|
|
561
|
+
details: z.array(z.unknown()).nullish()
|
|
561
562
|
})
|
|
562
563
|
})
|
|
563
564
|
)
|
|
@@ -1002,7 +1003,7 @@ function prepareTools({
|
|
|
1002
1003
|
tools: [{ functionDeclarations }],
|
|
1003
1004
|
toolConfig: {
|
|
1004
1005
|
functionCallingConfig: {
|
|
1005
|
-
mode:
|
|
1006
|
+
mode: "ANY"
|
|
1006
1007
|
}
|
|
1007
1008
|
},
|
|
1008
1009
|
toolWarnings
|
|
@@ -1012,7 +1013,7 @@ function prepareTools({
|
|
|
1012
1013
|
tools: [{ functionDeclarations }],
|
|
1013
1014
|
toolConfig: {
|
|
1014
1015
|
functionCallingConfig: {
|
|
1015
|
-
mode:
|
|
1016
|
+
mode: "ANY",
|
|
1016
1017
|
allowedFunctionNames: [toolChoice.toolName]
|
|
1017
1018
|
}
|
|
1018
1019
|
},
|