From f75bf309242b5d87314553761f7083b980d2b604 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Mon, 3 Jun 2024 00:22:04 +0100 Subject: [PATCH] Fix new_chat --- src/cogs/ollama.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cogs/ollama.py b/src/cogs/ollama.py index 28d3244..e717c0b 100644 --- a/src/cogs/ollama.py +++ b/src/cogs/ollama.py @@ -1049,7 +1049,7 @@ class Ollama(commands.Cog): msg = await ctx.reply(embed=embed) last_edit = time.time() messages = self.history.get_history(thread_id) - async with client.new_chat("llama2-uncensored:7b-chat", messages) as handler: + with client.new_chat("llama2-uncensored:7b-chat", messages) as handler: async for ln in handler: embed.description += ln["message"]["content"] if len(embed.description) >= 4000: