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
parent 8206c47a47
commit 7152af949b
3 changed files with 139 additions and 97 deletions

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
};

View File

@@ -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>