@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.
@@ -3131,6 +3131,7 @@ var openaiResponsesModelIds = [
3131
3131
  var openaiResponsesProviderOptionsSchema = lazySchema13(
3132
3132
  () => zodSchema13(
3133
3133
  z15.object({
3134
+ conversation: z15.string().nullish(),
3134
3135
  include: z15.array(
3135
3136
  z15.enum([
3136
3137
  "reasoning.encrypted_content",
@@ -3761,6 +3762,13 @@ var OpenAIResponsesLanguageModel = class {
3761
3762
  providerOptions,
3762
3763
  schema: openaiResponsesProviderOptionsSchema
3763
3764
  });
3765
+ if ((openaiOptions == null ? void 0 : openaiOptions.conversation) && (openaiOptions == null ? void 0 : openaiOptions.previousResponseId)) {
3766
+ warnings.push({
3767
+ type: "unsupported-setting",
3768
+ setting: "conversation",
3769
+ details: "conversation and previousResponseId cannot be used together"
3770
+ });
3771
+ }
3764
3772
  const { input, warnings: inputWarnings } = await convertToOpenAIResponsesInput({
3765
3773
  prompt,
3766
3774
  systemMessageMode: modelConfig.systemMessageMode,
@@ -3823,6 +3831,7 @@ var OpenAIResponsesLanguageModel = class {
3823
3831
  }
3824
3832
  },
3825
3833
  // provider options:
3834
+ conversation: openaiOptions == null ? void 0 : openaiOptions.conversation,
3826
3835
  max_tool_calls: openaiOptions == null ? void 0 : openaiOptions.maxToolCalls,
3827
3836
  metadata: openaiOptions == null ? void 0 : openaiOptions.metadata,
3828
3837
  parallel_tool_calls: openaiOptions == null ? void 0 : openaiOptions.parallelToolCalls,