Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaki-1052 committed Jul 28, 2024
1 parent 53bee65 commit b053315
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: '<assistant_response>' });
conversationHistory.push({ role: "assistant", content: lastMessageContent });
conversationHistory.push({ role: "assistant", content: '</ssistant_response>' });
console.log("Conversation History");
// Send this back to the client
res.json({ text: lastMessageContent });
Expand Down

0 comments on commit b053315

Please sign in to comment.