diff --git a/public/js/clinicalAssistant.js b/public/js/clinicalAssistant.js index 5144a4d..0a485b0 100644 --- a/public/js/clinicalAssistant.js +++ b/public/js/clinicalAssistant.js @@ -90,23 +90,6 @@ import { bindExampleButtons(document); loadSavedChats(); - var historyButton = document.createElement('button'); - historyButton.type = 'button'; historyButton.textContent = 'Reopen image history'; - imageBtn.parentNode.appendChild(historyButton); - historyButton.addEventListener('click', function() { - var owner; - try { owner = captureSharingOwner(); } catch (_) { return; } - imageJson('/api/image-jobs/clinical_assistant', {}, owner).then(function(data) { - assertSharingOwner(owner); - var out = document.getElementById('assistant-visual-output'); out.replaceChildren(); - renderImageJobs(out, data.jobs, 'clinical_assistant', function(card, image) { - card.insertAdjacentHTML('beforeend', imageStore.renderGeneratedImage(image.imageUrl, 'Generated teaching visual', image.downloadUrl)); - var use = document.createElement('button'); use.type = 'button'; use.textContent = 'Include in saved chat'; - use.onclick = function() { if (!validSharingOwner(owner) || !card.isConnected) return; generatedImageJobs = [{ jobId: image.jobId }]; lastGeneratedImageSrc = image.imageUrl; exporter.invalidate(); }; - card.appendChild(use); - }); - }).catch(function(e) { if (validSharingOwner(owner) && e.name !== 'AbortError') showToast(e.message, 'error'); }); - }); } function loadStatus() { @@ -862,8 +845,8 @@ import { var used = conversationSize(input ? input.value : ''); var label = document.getElementById('assistant-context-budget'); if (label) label.textContent = used.toLocaleString() + (conversationChars === null ? - ' conversation characters (UTF-16 code units; includes your draft). Limit unavailable; the server must validate each request.' : - ' / ' + conversationChars.toLocaleString() + ' conversation characters (UTF-16 code units; includes your draft).'); + ' conversation characters (UTF-16 code units). Limit unavailable; the server must validate each request.' : + ' / ' + conversationChars.toLocaleString() + ' conversation characters (UTF-16 code units).'); var warning = document.getElementById('assistant-context-warning'); if (warning) { warning.hidden = conversationChars === null || used * 10 < conversationChars * 9;