ai 3.1.37 → 3.2.0

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/dist/index.js CHANGED
@@ -683,7 +683,7 @@ async function generateObject({
683
683
  const generateResult = await retry(
684
684
  () => model.doGenerate({
685
685
  mode: { type: "object-grammar", schema: jsonSchema },
686
- ...settings,
686
+ ...prepareCallSettings(settings),
687
687
  inputFormat: validatedPrompt.type,
688
688
  prompt: convertToLanguageModelPrompt(validatedPrompt),
689
689
  abortSignal
@@ -717,7 +717,7 @@ async function generateObject({
717
717
  parameters: jsonSchema
718
718
  }
719
719
  },
720
- ...settings,
720
+ ...prepareCallSettings(settings),
721
721
  inputFormat: validatedPrompt.type,
722
722
  prompt: convertToLanguageModelPrompt(validatedPrompt),
723
723
  abortSignal
@@ -1216,7 +1216,7 @@ async function streamObject({
1216
1216
  });
1217
1217
  callOptions = {
1218
1218
  mode: { type: "object-grammar", schema: jsonSchema },
1219
- ...settings,
1219
+ ...prepareCallSettings(settings),
1220
1220
  inputFormat: validatedPrompt.type,
1221
1221
  prompt: convertToLanguageModelPrompt(validatedPrompt),
1222
1222
  abortSignal
@@ -1252,7 +1252,7 @@ async function streamObject({
1252
1252
  parameters: jsonSchema
1253
1253
  }
1254
1254
  },
1255
- ...settings,
1255
+ ...prepareCallSettings(settings),
1256
1256
  inputFormat: validatedPrompt.type,
1257
1257
  prompt: convertToLanguageModelPrompt(validatedPrompt),
1258
1258
  abortSignal