@ai-sdk/openai 4.0.53 → 4.0.55

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,21 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 4.0.55
4
+
5
+ ### Patch Changes
6
+
7
+ - 3fc40db: feat(openai): implement `getFileMetadata`, `downloadFile` (streaming), and `deleteFile` on the OpenAI files interface, support streaming uploads via `{ type: 'stream' }` data, expose `byteSize`/`createdAt`/`expiresAt` on upload results, and thread `abortSignal`/`headers` through all file operations; blank and dot-segment file ids are rejected/encoded so they cannot retarget request paths
8
+ - Updated dependencies [5190b67]
9
+ - @ai-sdk/provider@4.0.10
10
+ - @ai-sdk/provider-utils@5.0.35
11
+
12
+ ## 4.0.54
13
+
14
+ ### Patch Changes
15
+
16
+ - f6fac50: fix(openai): handle null usage in responses
17
+ - e07b577: feat: add tool calling support to batch
18
+
3
19
  ## 4.0.53
4
20
 
5
21
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -252,7 +252,10 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
252
252
  } | {
253
253
  type: "response.completed" | "response.incomplete";
254
254
  response: {
255
- usage: {
255
+ incomplete_details?: {
256
+ reason: string;
257
+ } | null | undefined;
258
+ usage?: {
256
259
  input_tokens: number;
257
260
  output_tokens: number;
258
261
  input_tokens_details?: {
@@ -265,9 +268,6 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
265
268
  reasoning_tokens?: number | null | undefined;
266
269
  orchestration_output_tokens?: number | null | undefined;
267
270
  } | null | undefined;
268
- };
269
- incomplete_details?: {
270
- reason: string;
271
271
  } | null | undefined;
272
272
  reasoning?: {
273
273
  context?: string | null | undefined;