This commit is contained in:
Timothy Jaeryang Baek 2025-03-22 14:01:07 -07:00
parent 07a15494e5
commit 75b18f92b9

View File

@ -79,9 +79,9 @@
const submitHandler = async () => { const submitHandler = async () => {
loading = true; loading = true;
if (!ollama && (!url || !key)) { if (!ollama && !url) {
loading = false; loading = false;
toast.error('URL and Key are required'); toast.error('URL is required');
return; return;
} }
@ -223,7 +223,7 @@
className="w-full text-sm bg-transparent placeholder:text-gray-300 dark:placeholder:text-gray-700 outline-hidden" className="w-full text-sm bg-transparent placeholder:text-gray-300 dark:placeholder:text-gray-700 outline-hidden"
bind:value={key} bind:value={key}
placeholder={$i18n.t('API Key')} placeholder={$i18n.t('API Key')}
required={!ollama} required={false}
/> />
</div> </div>
</div> </div>