@ai-sdk/openai 3.0.0-beta.25 → 3.0.0-beta.26
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 +6 -0
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +11 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +11 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/internal/index.mjs
CHANGED
|
@@ -2955,6 +2955,7 @@ var openaiResponsesProviderOptionsSchema = lazySchema13(
|
|
|
2955
2955
|
include: z15.array(
|
|
2956
2956
|
z15.enum([
|
|
2957
2957
|
"reasoning.encrypted_content",
|
|
2958
|
+
// handled internally by default, only needed for unknown reasoning models
|
|
2958
2959
|
"file_search_call.results",
|
|
2959
2960
|
"message.output_text.logprobs"
|
|
2960
2961
|
])
|
|
@@ -3475,7 +3476,11 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3475
3476
|
const strictJsonSchema = (_b = openaiOptions == null ? void 0 : openaiOptions.strictJsonSchema) != null ? _b : false;
|
|
3476
3477
|
let include = openaiOptions == null ? void 0 : openaiOptions.include;
|
|
3477
3478
|
function addInclude(key) {
|
|
3478
|
-
|
|
3479
|
+
if (include == null) {
|
|
3480
|
+
include = [key];
|
|
3481
|
+
} else if (!include.includes(key)) {
|
|
3482
|
+
include = [...include, key];
|
|
3483
|
+
}
|
|
3479
3484
|
}
|
|
3480
3485
|
function hasOpenAITool(id) {
|
|
3481
3486
|
return (tools == null ? void 0 : tools.find(
|
|
@@ -3495,6 +3500,10 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3495
3500
|
if (hasOpenAITool("openai.code_interpreter")) {
|
|
3496
3501
|
addInclude("code_interpreter_call.outputs");
|
|
3497
3502
|
}
|
|
3503
|
+
const store = openaiOptions == null ? void 0 : openaiOptions.store;
|
|
3504
|
+
if (store === false && modelConfig.isReasoningModel) {
|
|
3505
|
+
addInclude("reasoning.encrypted_content");
|
|
3506
|
+
}
|
|
3498
3507
|
const baseArgs = {
|
|
3499
3508
|
model: this.modelId,
|
|
3500
3509
|
input,
|
|
@@ -3522,7 +3531,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3522
3531
|
metadata: openaiOptions == null ? void 0 : openaiOptions.metadata,
|
|
3523
3532
|
parallel_tool_calls: openaiOptions == null ? void 0 : openaiOptions.parallelToolCalls,
|
|
3524
3533
|
previous_response_id: openaiOptions == null ? void 0 : openaiOptions.previousResponseId,
|
|
3525
|
-
store
|
|
3534
|
+
store,
|
|
3526
3535
|
user: openaiOptions == null ? void 0 : openaiOptions.user,
|
|
3527
3536
|
instructions: openaiOptions == null ? void 0 : openaiOptions.instructions,
|
|
3528
3537
|
service_tier: openaiOptions == null ? void 0 : openaiOptions.serviceTier,
|