@ai-sdk/openai 2.0.67 → 2.0.68

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.
@@ -2965,6 +2965,7 @@ var openaiResponsesModelIds = [
2965
2965
  var openaiResponsesProviderOptionsSchema = (0, import_provider_utils22.lazyValidator)(
2966
2966
  () => (0, import_provider_utils22.zodSchema)(
2967
2967
  import_v415.z.object({
2968
+ conversation: import_v415.z.string().nullish(),
2968
2969
  include: import_v415.z.array(
2969
2970
  import_v415.z.enum([
2970
2971
  "reasoning.encrypted_content",
@@ -3451,6 +3452,13 @@ var OpenAIResponsesLanguageModel = class {
3451
3452
  providerOptions,
3452
3453
  schema: openaiResponsesProviderOptionsSchema
3453
3454
  });
3455
+ if ((openaiOptions == null ? void 0 : openaiOptions.conversation) && (openaiOptions == null ? void 0 : openaiOptions.previousResponseId)) {
3456
+ warnings.push({
3457
+ type: "unsupported-setting",
3458
+ setting: "conversation",
3459
+ details: "conversation and previousResponseId cannot be used together"
3460
+ });
3461
+ }
3454
3462
  const { input, warnings: inputWarnings } = await convertToOpenAIResponsesInput({
3455
3463
  prompt,
3456
3464
  systemMessageMode: modelConfig.systemMessageMode,
@@ -3513,6 +3521,7 @@ var OpenAIResponsesLanguageModel = class {
3513
3521
  }
3514
3522
  },
3515
3523
  // provider options:
3524
+ conversation: openaiOptions == null ? void 0 : openaiOptions.conversation,
3516
3525
  max_tool_calls: openaiOptions == null ? void 0 : openaiOptions.maxToolCalls,
3517
3526
  metadata: openaiOptions == null ? void 0 : openaiOptions.metadata,
3518
3527
  parallel_tool_calls: openaiOptions == null ? void 0 : openaiOptions.parallelToolCalls,