functionlog(a){console.log(a)}// You can pass a context (message history) for more meaningful resultsconsthistory=["Hi","Are you ok?"]ai("Yes i'm fine",history).then(log)//Alternatively, you can pass a channel ID to automatically manage historyconstchannel="chat-1",channel2="chat-2";ai("Hi",channel).then(log)ai("Yes i'm fine",channel).then(log)//takes context from channel1 (2 messages)ai("Hello!",channel2)//takes context from channel2 (no messages)