@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.
@@ -498,8 +498,7 @@ import {
498
498
  } from "@ai-sdk/provider";
499
499
  function prepareChatTools({
500
500
  tools,
501
- toolChoice,
502
- strictJsonSchema
501
+ toolChoice
503
502
  }) {
504
503
  tools = (tools == null ? void 0 : tools.length) ? tools : void 0;
505
504
  const toolWarnings = [];
@@ -516,7 +515,7 @@ function prepareChatTools({
516
515
  name: tool.name,
517
516
  description: tool.description,
518
517
  parameters: tool.inputSchema,
519
- strict: strictJsonSchema
518
+ ...tool.strict != null ? { strict: tool.strict } : {}
520
519
  }
521
520
  });
522
521
  break;
@@ -736,8 +735,7 @@ var OpenAIChatLanguageModel = class {
736
735
  toolWarnings
737
736
  } = prepareChatTools({
738
737
  tools,
739
- toolChoice,
740
- strictJsonSchema
738
+ toolChoice
741
739
  });
742
740
  return {
743
741
  args: {
@@ -3743,8 +3741,7 @@ var webSearchPreview = createProviderToolFactoryWithOutputSchema8({
3743
3741
  // src/responses/openai-responses-prepare-tools.ts
3744
3742
  async function prepareResponsesTools({
3745
3743
  tools,
3746
- toolChoice,
3747
- strictJsonSchema
3744
+ toolChoice
3748
3745
  }) {
3749
3746
  tools = (tools == null ? void 0 : tools.length) ? tools : void 0;
3750
3747
  const toolWarnings = [];
@@ -3760,7 +3757,7 @@ async function prepareResponsesTools({
3760
3757
  name: tool.name,
3761
3758
  description: tool.description,
3762
3759
  parameters: tool.inputSchema,
3763
- strict: strictJsonSchema
3760
+ ...tool.strict != null ? { strict: tool.strict } : {}
3764
3761
  });
3765
3762
  break;
3766
3763
  case "provider": {
@@ -4126,8 +4123,7 @@ var OpenAIResponsesLanguageModel = class {
4126
4123
  toolWarnings
4127
4124
  } = await prepareResponsesTools({
4128
4125
  tools,
4129
- toolChoice,
4130
- strictJsonSchema
4126
+ toolChoice
4131
4127
  });
4132
4128
  return {
4133
4129
  webSearchToolName,