development #1

Merged
AllfatherHatt merged 157 commits from development into master 2025-06-14 15:47:26 +02:00
Showing only changes of commit a25c9dd4bb - Show all commits

View File

@ -194,6 +194,11 @@ class ReginaldCog(PermissionsMixin, BlacklistMixin, MemoryMixin, commands.Cog):
'tool_choice': 'auto',
}
response = await client.chat.completions.create(**completion_args)
# Appending response with tool calls
messages.append({
'role': 'assistant',
'content': response.choices[0].message.content,
})
# Checking for function calls
tool_calls = response.choices[0].message.tool_calls
if tool_calls: