@ai-sdk/openai 1.2.5 → 1.2.7

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
@@ -123,10 +123,6 @@ function convertToOpenAIChatMessages({
123
123
  text += part.text;
124
124
  break;
125
125
  }
126
- case "redacted-reasoning":
127
- case "reasoning": {
128
- break;
129
- }
130
126
  case "tool-call": {
131
127
  toolCalls.push({
132
128
  id: part.toolCallId,
@@ -138,10 +134,6 @@ function convertToOpenAIChatMessages({
138
134
  });
139
135
  break;
140
136
  }
141
- default: {
142
- const _exhaustiveCheck = part;
143
- throw new Error(`Unsupported part: ${_exhaustiveCheck}`);
144
- }
145
137
  }
146
138
  }
147
139
  if (useLegacyFunctionCalling) {