 content parameter.
            const eventSource = new EventSource(`/prompt?content=${encodeURIComponent(userPrompt)}`);

            // Listen for partial responses from the server.
            eventSource.addEventListener('chunk', (e) => {
                modelResponseDiv.textContent += e.data;
            });

            // Listen for status changes.
            eventSource.addEventListener('status', (e) => {
                if (e.data === 'done') {
                    eventSource.close();             