diff --git a/server.js b/server.js index f2f8eb5..5aa45f5 100644 --- a/server.js +++ b/server.js @@ -2207,9 +2207,7 @@ if (modelID.startsWith('llama-3.1')) { res.json({ text: lastMessageContent[0].text }); } else { // Add assistant's message to the conversation history - conversationHistory.push({ role: "assistant", content: '' }); conversationHistory.push({ role: "assistant", content: lastMessageContent }); - conversationHistory.push({ role: "assistant", content: '' }); console.log("Conversation History"); // Send this back to the client res.json({ text: lastMessageContent });