Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaki-1052 committed Jul 28, 2024
2 parents b053315 + 5b2c696 commit eba56dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2202,7 +2202,9 @@ if (modelID.startsWith('llama-3.1')) {
console.log("Assistant Response: ", lastMessageContent)

if (modelID.startsWith('claude')) {
conversationHistory.push({ role: "assistant", content: '<assistant_response>' });
claudeHistory.push({ role: "assistant", content: lastMessageContent[0].text });
conversationHistory.push({ role: "assistant", content: '</ssistant_response>' });
console.log("Claude History");
res.json({ text: lastMessageContent[0].text });
} else {
Expand Down Expand Up @@ -2425,4 +2427,4 @@ if (process.env.NODE_ENV === 'development') {
process.on('exit', nodemonShutdown);
}
*/
*/

0 comments on commit eba56dc

Please sign in to comment.