Merge pull request #28 from T-BENZIN/development

- Removed some condition check that some guy put in there
This commit is contained in:
Hatt 2025-03-16 14:00:45 +01:00 committed by GitHub
commit 39039fe188
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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