@ai-sdk/openai 1.3.12 → 1.3.14

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
@@ -526,13 +526,13 @@ var OpenAIChatLanguageModel = class {
526
526
  }
527
527
  baseArgs.max_tokens = void 0;
528
528
  }
529
- } else if (this.modelId.startsWith("gpt-4o-search-preview")) {
529
+ } else if (this.modelId.startsWith("gpt-4o-search-preview") || this.modelId.startsWith("gpt-4o-mini-search-preview")) {
530
530
  if (baseArgs.temperature != null) {
531
531
  baseArgs.temperature = void 0;
532
532
  warnings.push({
533
533
  type: "unsupported-setting",
534
534
  setting: "temperature",
535
- details: "temperature is not supported for the gpt-4o-search-preview model and has been removed."
535
+ details: "temperature is not supported for the search preview models and has been removed."
536
536
  });
537
537
  }
538
538
  }
@@ -2036,6 +2036,7 @@ var OpenAIResponsesLanguageModel = class {
2036
2036
  constructor(modelId, config) {
2037
2037
  this.specificationVersion = "v1";
2038
2038
  this.defaultObjectGenerationMode = "json";
2039
+ this.supportsStructuredOutputs = true;
2039
2040
  this.modelId = modelId;
2040
2041
  this.config = config;
2041
2042
  }