@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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 1.2.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d0c4659]
8
+ - @ai-sdk/provider-utils@2.1.15
9
+
10
+ ## 1.2.6
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [0bd5bc6]
15
+ - @ai-sdk/provider@1.0.12
16
+ - @ai-sdk/provider-utils@2.1.14
17
+
3
18
  ## 1.2.5
4
19
 
5
20
  ### Patch Changes
package/dist/index.js CHANGED
@@ -135,10 +135,6 @@ function convertToOpenAIChatMessages({
135
135
  text += part.text;
136
136
  break;
137
137
  }
138
- case "redacted-reasoning":
139
- case "reasoning": {
140
- break;
141
- }
142
138
  case "tool-call": {
143
139
  toolCalls.push({
144
140
  id: part.toolCallId,
@@ -150,10 +146,6 @@ function convertToOpenAIChatMessages({
150
146
  });
151
147
  break;
152
148
  }
153
- default: {
154
- const _exhaustiveCheck = part;
155
- throw new Error(`Unsupported part: ${_exhaustiveCheck}`);
156
- }
157
149
  }
158
150
  }
159
151
  if (useLegacyFunctionCalling) {