@ai-sdk/openai 2.0.0-canary.8 → 2.0.0-canary.9

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.
@@ -515,13 +515,13 @@ var OpenAIChatLanguageModel = class {
515
515
  }
516
516
  baseArgs.max_tokens = void 0;
517
517
  }
518
- } else if (this.modelId.startsWith("gpt-4o-search-preview")) {
518
+ } else if (this.modelId.startsWith("gpt-4o-search-preview") || this.modelId.startsWith("gpt-4o-mini-search-preview")) {
519
519
  if (baseArgs.temperature != null) {
520
520
  baseArgs.temperature = void 0;
521
521
  warnings.push({
522
522
  type: "unsupported-setting",
523
523
  setting: "temperature",
524
- details: "temperature is not supported for the gpt-4o-search-preview model and has been removed."
524
+ details: "temperature is not supported for the search preview models and has been removed."
525
525
  });
526
526
  }
527
527
  }
@@ -908,7 +908,7 @@ var openaiChatChunkSchema = z3.union([
908
908
  openaiErrorDataSchema
909
909
  ]);
910
910
  function isReasoningModel(modelId) {
911
- return modelId === "o1" || modelId.startsWith("o1-") || modelId === "o3" || modelId.startsWith("o3-");
911
+ return modelId.startsWith("o");
912
912
  }
913
913
  function isAudioModel(modelId) {
914
914
  return modelId.startsWith("gpt-4o-audio-preview");
@@ -1958,6 +1958,7 @@ var OpenAIResponsesLanguageModel = class {
1958
1958
  constructor(modelId, config) {
1959
1959
  this.specificationVersion = "v2";
1960
1960
  this.defaultObjectGenerationMode = "json";
1961
+ this.supportsStructuredOutputs = true;
1961
1962
  this.modelId = modelId;
1962
1963
  this.config = config;
1963
1964
  }