@ai-sdk/openai 3.0.0-beta.78 → 3.0.0-beta.79

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.
@@ -542,8 +542,7 @@ var openaiChatLanguageModelOptions = (0, import_provider_utils4.lazySchema)(
542
542
  var import_provider2 = require("@ai-sdk/provider");
543
543
  function prepareChatTools({
544
544
  tools,
545
- toolChoice,
546
- strictJsonSchema
545
+ toolChoice
547
546
  }) {
548
547
  tools = (tools == null ? void 0 : tools.length) ? tools : void 0;
549
548
  const toolWarnings = [];
@@ -560,7 +559,7 @@ function prepareChatTools({
560
559
  name: tool.name,
561
560
  description: tool.description,
562
561
  parameters: tool.inputSchema,
563
- strict: strictJsonSchema
562
+ ...tool.strict != null ? { strict: tool.strict } : {}
564
563
  }
565
564
  });
566
565
  break;
@@ -780,8 +779,7 @@ var OpenAIChatLanguageModel = class {
780
779
  toolWarnings
781
780
  } = prepareChatTools({
782
781
  tools,
783
- toolChoice,
784
- strictJsonSchema
782
+ toolChoice
785
783
  });
786
784
  return {
787
785
  args: {
@@ -3704,8 +3702,7 @@ var webSearchPreview = (0, import_provider_utils29.createProviderToolFactoryWith
3704
3702
  // src/responses/openai-responses-prepare-tools.ts
3705
3703
  async function prepareResponsesTools({
3706
3704
  tools,
3707
- toolChoice,
3708
- strictJsonSchema
3705
+ toolChoice
3709
3706
  }) {
3710
3707
  tools = (tools == null ? void 0 : tools.length) ? tools : void 0;
3711
3708
  const toolWarnings = [];
@@ -3721,7 +3718,7 @@ async function prepareResponsesTools({
3721
3718
  name: tool.name,
3722
3719
  description: tool.description,
3723
3720
  parameters: tool.inputSchema,
3724
- strict: strictJsonSchema
3721
+ ...tool.strict != null ? { strict: tool.strict } : {}
3725
3722
  });
3726
3723
  break;
3727
3724
  case "provider": {
@@ -4087,8 +4084,7 @@ var OpenAIResponsesLanguageModel = class {
4087
4084
  toolWarnings
4088
4085
  } = await prepareResponsesTools({
4089
4086
  tools,
4090
- toolChoice,
4091
- strictJsonSchema
4087
+ toolChoice
4092
4088
  });
4093
4089
  return {
4094
4090
  webSearchToolName,