From 87c8d3fb794a5f8061c602e295dc8f80d99effbc Mon Sep 17 00:00:00 2001 From: Sean Behan Date: Wed, 4 Dec 2024 16:07:18 -0500 Subject: [PATCH] fix duplicate message --- packages/worker/src/worker.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/worker/src/worker.ts b/packages/worker/src/worker.ts index 5ebd2304..dfbad14c 100644 --- a/packages/worker/src/worker.ts +++ b/packages/worker/src/worker.ts @@ -141,7 +141,6 @@ export default { } if ('response' in response) { if (response.response) { - await bot.reply(await markdown_to_html(response.response ?? ''), 'HTML'); await env.DB.prepare('INSERT INTO Messages (id, userId, content) VALUES (?, ?, ?)') .bind(crypto.randomUUID(), bot.update.message?.from.id, `'[INST] ${prompt} [/INST] \n ${response.response}`) .run();