@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/dist/index.mjs CHANGED
@@ -2953,6 +2953,7 @@ var openaiResponsesProviderOptionsSchema = lazyValidator9(
2953
2953
  include: z17.array(
2954
2954
  z17.enum([
2955
2955
  "reasoning.encrypted_content",
2956
+ // handled internally by default, only needed for unknown reasoning models
2956
2957
  "file_search_call.results",
2957
2958
  "message.output_text.logprobs"
2958
2959
  ])
@@ -3204,7 +3205,11 @@ var OpenAIResponsesLanguageModel = class {
3204
3205
  const strictJsonSchema = (_b = openaiOptions == null ? void 0 : openaiOptions.strictJsonSchema) != null ? _b : false;
3205
3206
  let include = openaiOptions == null ? void 0 : openaiOptions.include;
3206
3207
  function addInclude(key) {
3207
- include = include != null ? [...include, key] : [key];
3208
+ if (include == null) {
3209
+ include = [key];
3210
+ } else if (!include.includes(key)) {
3211
+ include = [...include, key];
3212
+ }
3208
3213
  }
3209
3214
  function hasOpenAITool(id) {
3210
3215
  return (tools == null ? void 0 : tools.find(
@@ -3224,6 +3229,10 @@ var OpenAIResponsesLanguageModel = class {
3224
3229
  if (hasOpenAITool("openai.code_interpreter")) {
3225
3230
  addInclude("code_interpreter_call.outputs");
3226
3231
  }
3232
+ const store = openaiOptions == null ? void 0 : openaiOptions.store;
3233
+ if (store === false && modelConfig.isReasoningModel) {
3234
+ addInclude("reasoning.encrypted_content");
3235
+ }
3227
3236
  const baseArgs = {
3228
3237
  model: this.modelId,
3229
3238
  input,
@@ -3251,7 +3260,7 @@ var OpenAIResponsesLanguageModel = class {
3251
3260
  metadata: openaiOptions == null ? void 0 : openaiOptions.metadata,
3252
3261
  parallel_tool_calls: openaiOptions == null ? void 0 : openaiOptions.parallelToolCalls,
3253
3262
  previous_response_id: openaiOptions == null ? void 0 : openaiOptions.previousResponseId,
3254
- store: openaiOptions == null ? void 0 : openaiOptions.store,
3263
+ store,
3255
3264
  user: openaiOptions == null ? void 0 : openaiOptions.user,
3256
3265
  instructions: openaiOptions == null ? void 0 : openaiOptions.instructions,
3257
3266
  service_tier: openaiOptions == null ? void 0 : openaiOptions.serviceTier,
@@ -4496,7 +4505,7 @@ var OpenAITranscriptionModel = class {
4496
4505
  };
4497
4506
 
4498
4507
  // src/version.ts
4499
- var VERSION = true ? "2.0.48" : "0.0.0-test";
4508
+ var VERSION = true ? "2.0.49" : "0.0.0-test";
4500
4509
 
4501
4510
  // src/openai-provider.ts
4502
4511
  function createOpenAI(options = {}) {