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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -588,7 +588,7 @@ async function generateObject({
|
|
588
588
|
const generateResult = await retry(
|
589
589
|
() => model.doGenerate({
|
590
590
|
mode: { type: "object-grammar", schema: jsonSchema },
|
591
|
-
...settings,
|
591
|
+
...prepareCallSettings(settings),
|
592
592
|
inputFormat: validatedPrompt.type,
|
593
593
|
prompt: convertToLanguageModelPrompt(validatedPrompt),
|
594
594
|
abortSignal
|
@@ -622,7 +622,7 @@ async function generateObject({
|
|
622
622
|
parameters: jsonSchema
|
623
623
|
}
|
624
624
|
},
|
625
|
-
...settings,
|
625
|
+
...prepareCallSettings(settings),
|
626
626
|
inputFormat: validatedPrompt.type,
|
627
627
|
prompt: convertToLanguageModelPrompt(validatedPrompt),
|
628
628
|
abortSignal
|
@@ -1121,7 +1121,7 @@ async function streamObject({
|
|
1121
1121
|
});
|
1122
1122
|
callOptions = {
|
1123
1123
|
mode: { type: "object-grammar", schema: jsonSchema },
|
1124
|
-
...settings,
|
1124
|
+
...prepareCallSettings(settings),
|
1125
1125
|
inputFormat: validatedPrompt.type,
|
1126
1126
|
prompt: convertToLanguageModelPrompt(validatedPrompt),
|
1127
1127
|
abortSignal
|
@@ -1157,7 +1157,7 @@ async function streamObject({
|
|
1157
1157
|
parameters: jsonSchema
|
1158
1158
|
}
|
1159
1159
|
},
|
1160
|
-
...settings,
|
1160
|
+
...prepareCallSettings(settings),
|
1161
1161
|
inputFormat: validatedPrompt.type,
|
1162
1162
|
prompt: convertToLanguageModelPrompt(validatedPrompt),
|
1163
1163
|
abortSignal
|