@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.
@@ -1037,7 +1037,7 @@ var openaiChatChunkSchema = z2.union([
1037
1037
  openaiErrorDataSchema
1038
1038
  ]);
1039
1039
  function isReasoningModel(modelId) {
1040
- return modelId === "o1" || modelId.startsWith("o1-") || modelId === "o3" || modelId.startsWith("o3-");
1040
+ return modelId === "o1" || modelId.startsWith("o1-") || modelId === "o3" || modelId.startsWith("o3-") || modelId.startsWith("o4-");
1041
1041
  }
1042
1042
  function isAudioModel(modelId) {
1043
1043
  return modelId.startsWith("gpt-4o-audio-preview");
@@ -2134,6 +2134,7 @@ var OpenAIResponsesLanguageModel = class {
2134
2134
  constructor(modelId, config) {
2135
2135
  this.specificationVersion = "v1";
2136
2136
  this.defaultObjectGenerationMode = "json";
2137
+ this.supportsStructuredOutputs = true;
2137
2138
  this.modelId = modelId;
2138
2139
  this.config = config;
2139
2140
  }