@ai-sdk/openai 2.0.48 → 2.0.49
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 +1 -1
package/dist/internal/index.mjs
CHANGED
|
@@ -2975,6 +2975,7 @@ var openaiResponsesProviderOptionsSchema = lazyValidator12(
|
|
|
2975
2975
|
include: z15.array(
|
|
2976
2976
|
z15.enum([
|
|
2977
2977
|
"reasoning.encrypted_content",
|
|
2978
|
+
// handled internally by default, only needed for unknown reasoning models
|
|
2978
2979
|
"file_search_call.results",
|
|
2979
2980
|
"message.output_text.logprobs"
|
|
2980
2981
|
])
|
|
@@ -3494,7 +3495,11 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3494
3495
|
const strictJsonSchema = (_b = openaiOptions == null ? void 0 : openaiOptions.strictJsonSchema) != null ? _b : false;
|
|
3495
3496
|
let include = openaiOptions == null ? void 0 : openaiOptions.include;
|
|
3496
3497
|
function addInclude(key) {
|
|
3497
|
-
|
|
3498
|
+
if (include == null) {
|
|
3499
|
+
include = [key];
|
|
3500
|
+
} else if (!include.includes(key)) {
|
|
3501
|
+
include = [...include, key];
|
|
3502
|
+
}
|
|
3498
3503
|
}
|
|
3499
3504
|
function hasOpenAITool(id) {
|
|
3500
3505
|
return (tools == null ? void 0 : tools.find(
|
|
@@ -3514,6 +3519,10 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3514
3519
|
if (hasOpenAITool("openai.code_interpreter")) {
|
|
3515
3520
|
addInclude("code_interpreter_call.outputs");
|
|
3516
3521
|
}
|
|
3522
|
+
const store = openaiOptions == null ? void 0 : openaiOptions.store;
|
|
3523
|
+
if (store === false && modelConfig.isReasoningModel) {
|
|
3524
|
+
addInclude("reasoning.encrypted_content");
|
|
3525
|
+
}
|
|
3517
3526
|
const baseArgs = {
|
|
3518
3527
|
model: this.modelId,
|
|
3519
3528
|
input,
|
|
@@ -3541,7 +3550,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3541
3550
|
metadata: openaiOptions == null ? void 0 : openaiOptions.metadata,
|
|
3542
3551
|
parallel_tool_calls: openaiOptions == null ? void 0 : openaiOptions.parallelToolCalls,
|
|
3543
3552
|
previous_response_id: openaiOptions == null ? void 0 : openaiOptions.previousResponseId,
|
|
3544
|
-
store
|
|
3553
|
+
store,
|
|
3545
3554
|
user: openaiOptions == null ? void 0 : openaiOptions.user,
|
|
3546
3555
|
instructions: openaiOptions == null ? void 0 : openaiOptions.instructions,
|
|
3547
3556
|
service_tier: openaiOptions == null ? void 0 : openaiOptions.serviceTier,
|