@ai-sdk/openai 2.0.4 → 2.0.6

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
@@ -1104,7 +1104,7 @@ var openaiChatChunkSchema = z5.union([
1104
1104
  openaiErrorDataSchema
1105
1105
  ]);
1106
1106
  function isReasoningModel(modelId) {
1107
- return modelId.startsWith("o");
1107
+ return modelId.startsWith("o") || modelId.startsWith("gpt-5");
1108
1108
  }
1109
1109
  function supportsFlexProcessing(modelId) {
1110
1110
  return modelId.startsWith("o3") || modelId.startsWith("o4-mini");
@@ -3142,7 +3142,7 @@ function isErrorChunk(chunk) {
3142
3142
  return chunk.type === "error";
3143
3143
  }
3144
3144
  function getResponsesModelConfig(modelId) {
3145
- if (modelId.startsWith("o") || modelId.startsWith("codex-") || modelId.startsWith("computer-use")) {
3145
+ if (modelId.startsWith("o") || modelId.startsWith("gpt-5") || modelId.startsWith("codex-") || modelId.startsWith("computer-use")) {
3146
3146
  if (modelId.startsWith("o1-mini") || modelId.startsWith("o1-preview")) {
3147
3147
  return {
3148
3148
  isReasoningModel: true,