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: