@ai-sdk/google 3.0.95 → 3.0.96
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 +6 -0
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -3
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +1 -3
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/google-generative-ai-language-model.ts +4 -8
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.96" : "0.0.0-test";
|
|
11
11
|
|
|
12
12
|
// src/google-generative-ai-embedding-model.ts
|
|
13
13
|
import {
|
|
@@ -1714,7 +1714,7 @@ var GoogleGenerativeAILanguageModel = class {
|
|
|
1714
1714
|
} else if ("codeExecutionResult" in part && part.codeExecutionResult) {
|
|
1715
1715
|
content.push({
|
|
1716
1716
|
type: "tool-result",
|
|
1717
|
-
//
|
|
1717
|
+
// Results correspond to the most recent executable code part.
|
|
1718
1718
|
toolCallId: lastCodeExecutionToolCallId,
|
|
1719
1719
|
toolName: "code_execution",
|
|
1720
1720
|
result: {
|
|
@@ -1722,7 +1722,6 @@ var GoogleGenerativeAILanguageModel = class {
|
|
|
1722
1722
|
output: (_d = part.codeExecutionResult.output) != null ? _d : ""
|
|
1723
1723
|
}
|
|
1724
1724
|
});
|
|
1725
|
-
lastCodeExecutionToolCallId = void 0;
|
|
1726
1725
|
} else if ("text" in part && part.text != null) {
|
|
1727
1726
|
const thoughtSignatureMetadata = part.thoughtSignature ? {
|
|
1728
1727
|
[providerOptionsName]: {
|
|
@@ -1984,7 +1983,6 @@ var GoogleGenerativeAILanguageModel = class {
|
|
|
1984
1983
|
output: (_d = part.codeExecutionResult.output) != null ? _d : ""
|
|
1985
1984
|
}
|
|
1986
1985
|
});
|
|
1987
|
-
lastCodeExecutionToolCallId = void 0;
|
|
1988
1986
|
}
|
|
1989
1987
|
} else if ("text" in part && part.text != null) {
|
|
1990
1988
|
const thoughtSignatureMetadata = part.thoughtSignature ? {
|