fix(whatsapp): warn when streaming is set in WhatsApp config (#558)
Co-authored-by: letta-code <248085862+letta-code@users.noreply.github.com> Co-authored-by: Cameron <cpfiffer@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e38f5a4db7
commit
8973e97464
@@ -55,6 +55,10 @@ const SHARED_CHANNEL_BUILDERS: SharedChannelBuilder[] = [
|
||||
{
|
||||
isEnabled: (agentConfig) => !!agentConfig.channels.whatsapp?.enabled,
|
||||
build: (agentConfig, options) => {
|
||||
const whatsappRaw = agentConfig.channels.whatsapp! as Record<string, unknown>;
|
||||
if (whatsappRaw.streaming) {
|
||||
log.warn('WhatsApp does not support streaming (message edits not available). Streaming setting will be ignored for WhatsApp.');
|
||||
}
|
||||
const selfChatMode = agentConfig.channels.whatsapp!.selfChat ?? true;
|
||||
if (!selfChatMode) {
|
||||
log.warn('WARNING: selfChatMode is OFF - bot will respond to ALL incoming messages!');
|
||||
|
||||
Reference in New Issue
Block a user