Trying to update messages

This commit is contained in:
AllfatherHatt 2025-03-16 14:25:10 +01:00
parent dc5bce9ca4
commit ae866894a3

View File

@ -225,6 +225,8 @@ class ReginaldCog(PermissionsMixin, BlacklistMixin, MemoryMixin, commands.Cog):
'content': func_result, 'content': func_result,
'tool_call_id': tool_call_id, 'tool_call_id': tool_call_id,
}) })
completion_args["messages"] = messages
# Second completion required if functions has been called to interpret the result into user-friendly # Second completion required if functions has been called to interpret the result into user-friendly
# chat message. # chat message.
response = await client.chat.completions.create(**completion_args) response = await client.chat.completions.create(**completion_args)