@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 +6 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +7 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +7 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3556,7 +3556,13 @@ var OpenAITranscriptionModel = class {
|
|
|
3556
3556
|
};
|
|
3557
3557
|
for (const [key, value] of Object.entries(transcriptionModelOptions)) {
|
|
3558
3558
|
if (value != null) {
|
|
3559
|
-
|
|
3559
|
+
if (Array.isArray(value)) {
|
|
3560
|
+
for (const item of value) {
|
|
3561
|
+
formData.append(`${key}[]`, String(item));
|
|
3562
|
+
}
|
|
3563
|
+
} else {
|
|
3564
|
+
formData.append(key, String(value));
|
|
3565
|
+
}
|
|
3560
3566
|
}
|
|
3561
3567
|
}
|
|
3562
3568
|
}
|