feat: compress audio

Co-Authored-By: Beck Bekmyradov <47065940+bekmuradov@users.noreply.github.com>
This commit is contained in:
Timothy J. Baek
2024-09-30 00:30:12 +02:00
co-authored by Beck Bekmyradov
parent 8206c47a47
commit 7152af949b
3 changed files with 139 additions and 97 deletions
+1 -1
View File
@@ -700,7 +700,7 @@
childrenIds: [],
role: 'user',
content: userPrompt,
files: chatFiles.length > 0 ? chatFiles : undefined,
files: _files.length > 0 ? _files : undefined,
timestamp: Math.floor(Date.now() / 1000), // Unix epoch
models: selectedModels
};
@@ -54,7 +54,7 @@
</div>
<div>
<div class="flex flex-col md:flex-row gap-1 justify-between w-full">
<div class="flex flex-col items-center md:flex-row gap-1 justify-between w-full">
<div class=" flex flex-wrap text-sm gap-1 text-gray-500">
{#if file.size}
<div class="capitalize shrink-0">{formatFileSize(file.size)}</div>