@ai-sdk/openai 3.0.0-beta.59 → 3.0.0-beta.60

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.
@@ -3115,6 +3115,7 @@ var openaiResponsesModelIds = [
3115
3115
  var openaiResponsesProviderOptionsSchema = (0, import_provider_utils22.lazySchema)(
3116
3116
  () => (0, import_provider_utils22.zodSchema)(
3117
3117
  import_v415.z.object({
3118
+ conversation: import_v415.z.string().nullish(),
3118
3119
  include: import_v415.z.array(
3119
3120
  import_v415.z.enum([
3120
3121
  "reasoning.encrypted_content",
@@ -3719,6 +3720,13 @@ var OpenAIResponsesLanguageModel = class {
3719
3720
  providerOptions,
3720
3721
  schema: openaiResponsesProviderOptionsSchema
3721
3722
  });
3723
+ if ((openaiOptions == null ? void 0 : openaiOptions.conversation) && (openaiOptions == null ? void 0 : openaiOptions.previousResponseId)) {
3724
+ warnings.push({
3725
+ type: "unsupported-setting",
3726
+ setting: "conversation",
3727
+ details: "conversation and previousResponseId cannot be used together"
3728
+ });
3729
+ }
3722
3730
  const { input, warnings: inputWarnings } = await convertToOpenAIResponsesInput({
3723
3731
  prompt,
3724
3732
  systemMessageMode: modelConfig.systemMessageMode,
@@ -3781,6 +3789,7 @@ var OpenAIResponsesLanguageModel = class {
3781
3789
  }
3782
3790
  },
3783
3791
  // provider options:
3792
+ conversation: openaiOptions == null ? void 0 : openaiOptions.conversation,
3784
3793
  max_tool_calls: openaiOptions == null ? void 0 : openaiOptions.maxToolCalls,
3785
3794
  metadata: openaiOptions == null ? void 0 : openaiOptions.metadata,
3786
3795
  parallel_tool_calls: openaiOptions == null ? void 0 : openaiOptions.parallelToolCalls,