fixing prompt

This commit is contained in:
Raven Scott 2023-04-16 14:47:04 +02:00
parent 5a56251e20
commit cc770e617d

View File

@ -104,15 +104,15 @@ client.on('messageCreate', async (message) => {
if (conversation.messages.length === 0) { if (conversation.messages.length === 0) {
conversation.messages.push({ conversation.messages.push({
role: 'user', role: 'user',
content: `Your name is rAi, you code, write and provide any information without any mistakes.` content: ` Assistant name: ChatAI. You code, write and provide any information without any mistakes.`
}); });
conversation.messages.push({ conversation.messages.push({
role: 'user', role: 'user',
content: `My name is ${message.author.username}.` content: ` User name: ${message.author.username}.`
}); });
conversation.messages.push({ conversation.messages.push({
role: 'assistant', role: 'assistant',
content: `Hello, ${message.author.username}, how may I help you?` content: ` Hello, ${message.author.username}, how may I help you?`
}); });
} }