@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.
package/dist/index.mjs CHANGED
@@ -2969,6 +2969,7 @@ var openaiResponsesModelIds = [
2969
2969
  var openaiResponsesProviderOptionsSchema = lazyValidator9(
2970
2970
  () => zodSchema15(
2971
2971
  z17.object({
2972
+ conversation: z17.string().nullish(),
2972
2973
  include: z17.array(
2973
2974
  z17.enum([
2974
2975
  "reasoning.encrypted_content",
@@ -3223,6 +3224,13 @@ var OpenAIResponsesLanguageModel = class {
3223
3224
  providerOptions,
3224
3225
  schema: openaiResponsesProviderOptionsSchema
3225
3226
  });
3227
+ if ((openaiOptions == null ? void 0 : openaiOptions.conversation) && (openaiOptions == null ? void 0 : openaiOptions.previousResponseId)) {
3228
+ warnings.push({
3229
+ type: "unsupported-setting",
3230
+ setting: "conversation",
3231
+ details: "conversation and previousResponseId cannot be used together"
3232
+ });
3233
+ }
3226
3234
  const { input, warnings: inputWarnings } = await convertToOpenAIResponsesInput({
3227
3235
  prompt,
3228
3236
  systemMessageMode: modelConfig.systemMessageMode,
@@ -3285,6 +3293,7 @@ var OpenAIResponsesLanguageModel = class {
3285
3293
  }
3286
3294
  },
3287
3295
  // provider options:
3296
+ conversation: openaiOptions == null ? void 0 : openaiOptions.conversation,
3288
3297
  max_tool_calls: openaiOptions == null ? void 0 : openaiOptions.maxToolCalls,
3289
3298
  metadata: openaiOptions == null ? void 0 : openaiOptions.metadata,
3290
3299
  parallel_tool_calls: openaiOptions == null ? void 0 : openaiOptions.parallelToolCalls,
@@ -4575,7 +4584,7 @@ var OpenAITranscriptionModel = class {
4575
4584
  };
4576
4585
 
4577
4586
  // src/version.ts
4578
- var VERSION = true ? "2.0.67" : "0.0.0-test";
4587
+ var VERSION = true ? "2.0.68" : "0.0.0-test";
4579
4588
 
4580
4589
  // src/openai-provider.ts
4581
4590
  function createOpenAI(options = {}) {