feat: submit prompt integration

This commit is contained in:
Timothy J. Baek
2024-06-07 00:04:47 -07:00
parent 404bb3fd67
commit 4e640daf83
3 changed files with 59 additions and 12 deletions

View File

@@ -897,7 +897,11 @@
class=" text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-850 transition rounded-full p-2 self-center"
type="button"
on:click={() => {
showCallOverlay.set(true);
if (selectedModels.length > 1) {
toast.error($i18n.t('Select only one model to call'));
} else {
showCallOverlay.set(true);
}
}}
>
<Headphone className="size-6" />