Fix new_chat
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s

This commit is contained in:
Nexus 2024-06-03 00:22:04 +01:00
parent 4706ac2daa
commit f75bf30924
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -1049,7 +1049,7 @@ class Ollama(commands.Cog):
msg = await ctx.reply(embed=embed) msg = await ctx.reply(embed=embed)
last_edit = time.time() last_edit = time.time()
messages = self.history.get_history(thread_id) 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: async for ln in handler:
embed.description += ln["message"]["content"] embed.description += ln["message"]["content"]
if len(embed.description) >= 4000: if len(embed.description) >= 4000: