@tstdl/base 0.92.107 → 0.92.108
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/ai/ai-file.service.js +1 -1
- package/package.json +1 -1
package/ai/ai-file.service.js
CHANGED
|
@@ -64,7 +64,7 @@ let AiFileService = class AiFileService {
|
|
|
64
64
|
async uploadFile(fileInput, id) {
|
|
65
65
|
const inputIsBlob = isBlob(fileInput);
|
|
66
66
|
const buffer = inputIsBlob
|
|
67
|
-
? await fileInput.
|
|
67
|
+
? Buffer.from(await fileInput.arrayBuffer())
|
|
68
68
|
: await readFile(fileInput.path);
|
|
69
69
|
const mimeType = inputIsBlob ? fileInput.type : fileInput.mimeType;
|
|
70
70
|
this.#logger.verbose(`Uploading file "${id}" (${formatBytes(buffer.length)})...`);
|