@ai-sdk/openai 2.0.24 → 2.0.25

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,11 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 2.0.25
4
+
5
+ ### Patch Changes
6
+
7
+ - fb45ade: fix timestamp granularities support for openai transcription
8
+
3
9
  ## 2.0.24
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3521,7 +3521,13 @@ var OpenAITranscriptionModel = class {
3521
3521
  };
3522
3522
  for (const [key, value] of Object.entries(transcriptionModelOptions)) {
3523
3523
  if (value != null) {
3524
- formData.append(key, String(value));
3524
+ if (Array.isArray(value)) {
3525
+ for (const item of value) {
3526
+ formData.append(`${key}[]`, String(item));
3527
+ }
3528
+ } else {
3529
+ formData.append(key, String(value));
3530
+ }
3525
3531
  }
3526
3532
  }
3527
3533
  }