@ai-sdk/google 3.0.0-beta.47 → 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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 3.0.0-beta.48
4
+
5
+ ### Patch Changes
6
+
7
+ - 6078060: fix(provider/google): remove includethoughts warning
8
+
3
9
  ## 3.0.0-beta.47
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(src_exports);
30
30
  var import_provider_utils13 = require("@ai-sdk/provider-utils");
31
31
 
32
32
  // src/version.ts
33
- var VERSION = true ? "3.0.0-beta.47" : "0.0.0-test";
33
+ var VERSION = true ? "3.0.0-beta.48" : "0.0.0-test";
34
34
 
35
35
  // src/google-generative-ai-embedding-model.ts
36
36
  var import_provider = require("@ai-sdk/provider");
@@ -817,19 +817,13 @@ var GoogleGenerativeAILanguageModel = class {
817
817
  toolChoice,
818
818
  providerOptions
819
819
  }) {
820
- var _a, _b;
820
+ var _a;
821
821
  const warnings = [];
822
822
  const googleOptions = await (0, import_provider_utils6.parseProviderOptions)({
823
823
  provider: "google",
824
824
  providerOptions,
825
825
  schema: googleGenerativeAIProviderOptions
826
826
  });
827
- if (((_a = googleOptions == null ? void 0 : googleOptions.thinkingConfig) == null ? void 0 : _a.includeThoughts) === true && !this.config.provider.startsWith("google.vertex.")) {
828
- warnings.push({
829
- type: "other",
830
- 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}).`
831
- });
832
- }
833
827
  if ((tools == null ? void 0 : tools.some(
834
828
  (tool) => tool.type === "provider-defined" && tool.id === "google.vertex_rag_store"
835
829
  )) && !this.config.provider.startsWith("google.vertex.")) {
@@ -869,7 +863,7 @@ var GoogleGenerativeAILanguageModel = class {
869
863
  responseSchema: (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null && // Google GenAI does not support all OpenAPI Schema features,
870
864
  // so this is needed as an escape hatch:
871
865
  // TODO convert into provider option
872
- ((_b = googleOptions == null ? void 0 : googleOptions.structuredOutputs) != null ? _b : true) ? convertJSONSchemaToOpenAPISchema(responseFormat.schema) : void 0,
866
+ ((_a = googleOptions == null ? void 0 : googleOptions.structuredOutputs) != null ? _a : true) ? convertJSONSchemaToOpenAPISchema(responseFormat.schema) : void 0,
873
867
  ...(googleOptions == null ? void 0 : googleOptions.audioTimestamp) && {
874
868
  audioTimestamp: googleOptions.audioTimestamp
875
869
  },