const userIds: string[] = ['Sendbird', 'your_bot_id'];
await fetch('https://api-{application_id}.sendbird.com/v3/bots', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
bot_userid: 'your_bot_id',
bot_nickname: 'LLama2 Helper Bot',
is_privacy_mode: false,
ai: {
backend: 'llama2',
system_message: 'You are a helpful assistant',
temperature: 0.7,
max_tokens: 256,
top_p: 0,
presence_penalty: 0,
frequency_penalty: 0
}
})
});
await channel.inviteWithUserIds(userIds);