diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 0582517950..fa4f05311a 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -3103,6 +3103,7 @@ }; const createMessagePair = async (userPrompt) => { + if (readOnly) return; messageInput?.setText(''); if (selectedModels.length === 0) { toast.error($i18n.t('Model not selected'));