@ai-sdk/google 2.0.35 → 2.0.36

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
+ ## 2.0.36
4
+
5
+ ### Patch Changes
6
+
7
+ - 9df7698: fix(provider/google): remove includethoughts warning
8
+
3
9
  ## 2.0.35
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 ? "2.0.35" : "0.0.0-test";
33
+ var VERSION = true ? "2.0.36" : "0.0.0-test";
34
34
 
35
35
  // src/google-generative-ai-embedding-model.ts
36
36
  var import_provider = require("@ai-sdk/provider");
@@ -812,19 +812,13 @@ var GoogleGenerativeAILanguageModel = class {
812
812
  toolChoice,
813
813
  providerOptions
814
814
  }) {
815
- var _a, _b;
815
+ var _a;
816
816
  const warnings = [];
817
817
  const googleOptions = await (0, import_provider_utils6.parseProviderOptions)({
818
818
  provider: "google",
819
819
  providerOptions,
820
820
  schema: googleGenerativeAIProviderOptions
821
821
  });
822
- if (((_a = googleOptions == null ? void 0 : googleOptions.thinkingConfig) == null ? void 0 : _a.includeThoughts) === true && !this.config.provider.startsWith("google.vertex.")) {
823
- warnings.push({
824
- type: "other",
825
- 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}).`
826
- });
827
- }
828
822
  if ((tools == null ? void 0 : tools.some(
829
823
  (tool) => tool.type === "provider-defined" && tool.id === "google.vertex_rag_store"
830
824
  )) && !this.config.provider.startsWith("google.vertex.")) {
@@ -864,7 +858,7 @@ var GoogleGenerativeAILanguageModel = class {
864
858
  responseSchema: (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null && // Google GenAI does not support all OpenAPI Schema features,
865
859
  // so this is needed as an escape hatch:
866
860
  // TODO convert into provider option
867
- ((_b = googleOptions == null ? void 0 : googleOptions.structuredOutputs) != null ? _b : true) ? convertJSONSchemaToOpenAPISchema(responseFormat.schema) : void 0,
861
+ ((_a = googleOptions == null ? void 0 : googleOptions.structuredOutputs) != null ? _a : true) ? convertJSONSchemaToOpenAPISchema(responseFormat.schema) : void 0,
868
862
  ...(googleOptions == null ? void 0 : googleOptions.audioTimestamp) && {
869
863
  audioTimestamp: googleOptions.audioTimestamp
870
864
  },