@ai-sdk/google 3.0.91 → 3.0.93
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 +13 -0
- package/dist/index.js +2 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -7
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.js +1 -6
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +1 -6
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/interactions/google-interactions-language-model.ts +2 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/google",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.93",
|
|
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": "3.0.14",
|
|
40
|
-
"@ai-sdk/provider-utils": "4.0.
|
|
40
|
+
"@ai-sdk/provider-utils": "4.0.39"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "20.17.24",
|
|
@@ -75,7 +75,7 @@ export class GoogleInteractionsLanguageModel implements LanguageModelV3 {
|
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Optional agent name. When provided, the request body sends `agent:` instead
|
|
78
|
-
* of `model:` and rejects `
|
|
78
|
+
* of `model:` and rejects `generation_config` (warned, not thrown).
|
|
79
79
|
*/
|
|
80
80
|
readonly agent: string | undefined;
|
|
81
81
|
|
|
@@ -134,13 +134,7 @@ export class GoogleInteractionsLanguageModel implements LanguageModelV3 {
|
|
|
134
134
|
let toolsForBody: Array<GoogleInteractionsTool> | undefined;
|
|
135
135
|
let toolChoiceForBody: GoogleInteractionsToolChoice | undefined;
|
|
136
136
|
|
|
137
|
-
if (hasTools
|
|
138
|
-
warnings.push({
|
|
139
|
-
type: 'other',
|
|
140
|
-
message:
|
|
141
|
-
'google.interactions: tools are not supported when an agent is set; tools will be omitted from the request body.',
|
|
142
|
-
});
|
|
143
|
-
} else if (hasTools) {
|
|
137
|
+
if (hasTools) {
|
|
144
138
|
const prepared = prepareGoogleInteractionsTools({
|
|
145
139
|
tools: options.tools,
|
|
146
140
|
toolChoice: options.toolChoice,
|