FIX: typo when excluding personas from enabled bot list (#671)

This commit is contained in:
Roman Rizzi 2024-06-19 10:16:00 -03:00 committed by GitHub
parent 0d6d9a6ef5
commit c4d9fab8e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -14,9 +14,9 @@ function isBotMessage(composer, currentUser) {
) { ) {
const reciepients = composer.targetRecipients.split(","); const reciepients = composer.targetRecipients.split(",");
return currentUser.ai_enabled_chat_bots.any((bot) => return currentUser.ai_enabled_chat_bots
reciepients.any((username) => username === bot.username) .filter((bot) => !bot.is_persona)
); .any((bot) => reciepients.any((username) => username === bot.username));
} }
return false; return false;
} }
@ -110,7 +110,7 @@ export default class BotSelector extends Component {
get llmOptions() { get llmOptions() {
const availableBots = this.currentUser.ai_enabled_chat_bots const availableBots = this.currentUser.ai_enabled_chat_bots
.filter((bot) => !bot.is_persosna) .filter((bot) => !bot.is_persona)
.filter(Boolean); .filter(Boolean);
return availableBots.map((bot) => { return availableBots.map((bot) => {