diff --git a/src/file-upload.js b/src/file-upload.js index 628ee5e..7da1b02 100644 --- a/src/file-upload.js +++ b/src/file-upload.js @@ -83,18 +83,8 @@ export async function integrateMegafarceResponse(response) { // Add a system message with the uploaded content to provide context chatHistory.push({ role: "system", content: `Uploaded Context: ${content}` }); - // Display the uploaded content in the chat box - const chatBox = document.getElementById('chat-box'); - const systemMessage = document.createElement('p'); - systemMessage.innerHTML = `System: ${marked.parse(content)}`; - - // Apply syntax highlighting to any code blocks - systemMessage.querySelectorAll('pre code').forEach((block) => { - hljs.highlightElement(block); - }); - - chatBox.appendChild(systemMessage); - chatBox.scrollTop = chatBox.scrollHeight; + // Note: System message is added to chat history for context but not displayed to user + // The uploaded content context is available to the AI without showing it in the chat // Add Generate TTS button for the uploaded content const generateTTSButton = document.createElement('button');