diff --git a/server.js b/server.js index 5aa45f5..0830fb7 100644 --- a/server.js +++ b/server.js @@ -2202,7 +2202,9 @@ if (modelID.startsWith('llama-3.1')) { console.log("Assistant Response: ", lastMessageContent) if (modelID.startsWith('claude')) { + conversationHistory.push({ role: "assistant", content: '' }); claudeHistory.push({ role: "assistant", content: lastMessageContent[0].text }); + conversationHistory.push({ role: "assistant", content: '' }); console.log("Claude History"); res.json({ text: lastMessageContent[0].text }); } else { @@ -2425,4 +2427,4 @@ if (process.env.NODE_ENV === 'development') { process.on('exit', nodemonShutdown); } -*/ \ No newline at end of file +*/