Skip to content

Commit

Permalink
fix duplicate message
Browse files Browse the repository at this point in the history
  • Loading branch information
codebam committed Dec 4, 2024
1 parent a025f96 commit 87c8d3f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/worker/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 87c8d3f

Please sign in to comment.