diff --git a/src/handlers/llama.rs b/src/handlers/llama.rs index 4efb8b71fc0e310064db1fd88d7416bb64c11791..23c84ca5b7f2d715fd607f105e063eb307b542de 100644 --- a/src/handlers/llama.rs +++ b/src/handlers/llama.rs @@ -118,8 +118,15 @@ impl LlamaHandler { .map(|chunk| chunk.collect()) .collect(); + let mut first = true; for chunk in chunks { - let res = msg.reply(ctx, chunk).await; + let res = if first { + msg.reply(ctx, chunk).await + } else { + msg.channel_id.send_message(ctx, |m| m.content(chunk)).await + }; + first = false; + match res { Ok(x) => { self.contexts