nlux
nlux copied to clipboard
Error in the documentation about javascript apis with bot persona
Chat personas error
https://nlux.dev/learn/chat-personas
How To Define The Bot Persona
In Javascript, you can define the bot persona by calling withPersonaOptions when creating the AiChat component. The withPersonaOptions function takes an object with two properties: bot and user. The bot property is what you use to define the bot persona, as shown in the example below.
const aiChat = createAiChat()
.withAdapter(adapter)
.withPersonaOptions({
bot: {
name: 'HarryBotter',
avatar: 'https://nlux.ai/images/demos/persona-harry-botter.jpg',
tagline: 'Mischievously Making Magic With Mirthful AI!'
}
});
avatar should be replaced with picture
I wanted to fix the error message but I dont see the docs repository