@ai-sdk/google 3.0.0-beta.46 → 3.0.0-beta.48
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -9
- 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 +2 -8
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -8
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
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.0-beta.
|
|
10
|
+
var VERSION = true ? "3.0.0-beta.48" : "0.0.0-test";
|
|
11
11
|
|
|
12
12
|
// src/google-generative-ai-embedding-model.ts
|
|
13
13
|
import {
|
|
@@ -825,19 +825,13 @@ var GoogleGenerativeAILanguageModel = class {
|
|
|
825
825
|
toolChoice,
|
|
826
826
|
providerOptions
|
|
827
827
|
}) {
|
|
828
|
-
var _a
|
|
828
|
+
var _a;
|
|
829
829
|
const warnings = [];
|
|
830
830
|
const googleOptions = await parseProviderOptions2({
|
|
831
831
|
provider: "google",
|
|
832
832
|
providerOptions,
|
|
833
833
|
schema: googleGenerativeAIProviderOptions
|
|
834
834
|
});
|
|
835
|
-
if (((_a = googleOptions == null ? void 0 : googleOptions.thinkingConfig) == null ? void 0 : _a.includeThoughts) === true && !this.config.provider.startsWith("google.vertex.")) {
|
|
836
|
-
warnings.push({
|
|
837
|
-
type: "other",
|
|
838
|
-
message: `The 'includeThoughts' option is only supported with the Google Vertex provider and might not be supported or could behave unexpectedly with the current Google provider (${this.config.provider}).`
|
|
839
|
-
});
|
|
840
|
-
}
|
|
841
835
|
if ((tools == null ? void 0 : tools.some(
|
|
842
836
|
(tool) => tool.type === "provider-defined" && tool.id === "google.vertex_rag_store"
|
|
843
837
|
)) && !this.config.provider.startsWith("google.vertex.")) {
|
|
@@ -877,7 +871,7 @@ var GoogleGenerativeAILanguageModel = class {
|
|
|
877
871
|
responseSchema: (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null && // Google GenAI does not support all OpenAPI Schema features,
|
|
878
872
|
// so this is needed as an escape hatch:
|
|
879
873
|
// TODO convert into provider option
|
|
880
|
-
((
|
|
874
|
+
((_a = googleOptions == null ? void 0 : googleOptions.structuredOutputs) != null ? _a : true) ? convertJSONSchemaToOpenAPISchema(responseFormat.schema) : void 0,
|
|
881
875
|
...(googleOptions == null ? void 0 : googleOptions.audioTimestamp) && {
|
|
882
876
|
audioTimestamp: googleOptions.audioTimestamp
|
|
883
877
|
},
|