added persistence in chat endpoint

This commit is contained in:
Kevin Dang
2024-01-23 16:33:21 -08:00
committed by kevinthedang
parent f8956b0b50
commit 78921ee571
5 changed files with 44 additions and 24 deletions

View File

@@ -14,7 +14,14 @@ const client = new Client({
]
});
registerEvents(client, Events)
const messageHistory = [
{
role: 'assistant',
content: 'My name is Ollama GU.'
}
]
registerEvents(client, Events, messageHistory)
// Try to log in the client
client.login(Keys.clientToken)