Merge branch 'development' of https://github.com/Kanium/KaniumCogs into development

This commit is contained in:
AllfatherHatt 2025-03-16 14:11:00 +01:00
commit f22c77e2a1

View File

@ -212,7 +212,7 @@ class ReginaldCog(PermissionsMixin, BlacklistMixin, MemoryMixin, commands.Cog):
'content': response.choices[0].message.content,
'tool_calls': tool_calls
})
if isinstance(tool_calls, list) and tool_calls:
if tool_calls:
for i_call in tool_calls:
# Calling for necessary functions
func_name = i_call.function.name