@ai-sdk/openai 1.3.13 → 1.3.15

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
@@ -1043,7 +1043,7 @@ var openaiChatChunkSchema = z2.union([
1043
1043
  openaiErrorDataSchema
1044
1044
  ]);
1045
1045
  function isReasoningModel(modelId) {
1046
- return modelId === "o1" || modelId.startsWith("o1-") || modelId === "o3" || modelId.startsWith("o3-");
1046
+ return modelId === "o1" || modelId.startsWith("o1-") || modelId === "o3" || modelId.startsWith("o3-") || modelId.startsWith("o4-");
1047
1047
  }
1048
1048
  function isAudioModel(modelId) {
1049
1049
  return modelId.startsWith("gpt-4o-audio-preview");
@@ -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
  }