@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.
@@ -2940,6 +2940,7 @@ var openaiResponsesProviderOptionsSchema = (0, import_provider_utils22.lazySchem
2940
2940
  include: import_v415.z.array(
2941
2941
  import_v415.z.enum([
2942
2942
  "reasoning.encrypted_content",
2943
+ // handled internally by default, only needed for unknown reasoning models
2943
2944
  "file_search_call.results",
2944
2945
  "message.output_text.logprobs"
2945
2946
  ])
@@ -3438,7 +3439,11 @@ var OpenAIResponsesLanguageModel = class {
3438
3439
  const strictJsonSchema = (_b = openaiOptions == null ? void 0 : openaiOptions.strictJsonSchema) != null ? _b : false;
3439
3440
  let include = openaiOptions == null ? void 0 : openaiOptions.include;
3440
3441
  function addInclude(key) {
3441
- include = include != null ? [...include, key] : [key];
3442
+ if (include == null) {
3443
+ include = [key];
3444
+ } else if (!include.includes(key)) {
3445
+ include = [...include, key];
3446
+ }
3442
3447
  }
3443
3448
  function hasOpenAITool(id) {
3444
3449
  return (tools == null ? void 0 : tools.find(
@@ -3458,6 +3463,10 @@ var OpenAIResponsesLanguageModel = class {
3458
3463
  if (hasOpenAITool("openai.code_interpreter")) {
3459
3464
  addInclude("code_interpreter_call.outputs");
3460
3465
  }
3466
+ const store = openaiOptions == null ? void 0 : openaiOptions.store;
3467
+ if (store === false && modelConfig.isReasoningModel) {
3468
+ addInclude("reasoning.encrypted_content");
3469
+ }
3461
3470
  const baseArgs = {
3462
3471
  model: this.modelId,
3463
3472
  input,
@@ -3485,7 +3494,7 @@ var OpenAIResponsesLanguageModel = class {
3485
3494
  metadata: openaiOptions == null ? void 0 : openaiOptions.metadata,
3486
3495
  parallel_tool_calls: openaiOptions == null ? void 0 : openaiOptions.parallelToolCalls,
3487
3496
  previous_response_id: openaiOptions == null ? void 0 : openaiOptions.previousResponseId,
3488
- store: openaiOptions == null ? void 0 : openaiOptions.store,
3497
+ store,
3489
3498
  user: openaiOptions == null ? void 0 : openaiOptions.user,
3490
3499
  instructions: openaiOptions == null ? void 0 : openaiOptions.instructions,
3491
3500
  service_tier: openaiOptions == null ? void 0 : openaiOptions.serviceTier,