@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.
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.startsWith("o");
1046
+ return modelId.startsWith("o") || modelId.startsWith("gpt-5");
1047
1047
  }
1048
1048
  function isAudioModel(modelId) {
1049
1049
  return modelId.startsWith("gpt-4o-audio-preview");
@@ -2650,7 +2650,7 @@ function isErrorChunk(chunk) {
2650
2650
  return chunk.type === "error";
2651
2651
  }
2652
2652
  function getResponsesModelConfig(modelId) {
2653
- if (modelId.startsWith("o")) {
2653
+ if (modelId.startsWith("o") || modelId.startsWith("gpt-5")) {
2654
2654
  if (modelId.startsWith("o1-mini") || modelId.startsWith("o1-preview")) {
2655
2655
  return {
2656
2656
  isReasoningModel: true,