@ai-sdk/openai 1.3.23 → 1.3.24

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.startsWith("o");
1040
+ return modelId.startsWith("o") || modelId.startsWith("gpt-5");
1041
1041
  }
1042
1042
  function isAudioModel(modelId) {
1043
1043
  return modelId.startsWith("gpt-4o-audio-preview");
@@ -2748,7 +2748,7 @@ function isErrorChunk(chunk) {
2748
2748
  return chunk.type === "error";
2749
2749
  }
2750
2750
  function getResponsesModelConfig(modelId) {
2751
- if (modelId.startsWith("o")) {
2751
+ if (modelId.startsWith("o") || modelId.startsWith("gpt-5")) {
2752
2752
  if (modelId.startsWith("o1-mini") || modelId.startsWith("o1-preview")) {
2753
2753
  return {
2754
2754
  isReasoningModel: true,