Fix new_chat
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s
This commit is contained in:
parent
4706ac2daa
commit
f75bf30924
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue