refactor: remove forced tool choice parameter in API call for model tool usage

This commit is contained in:
2025-08-27 10:22:47 +07:00
parent 6bfc6d4573
commit 85b0d265a6

View File

@@ -1150,7 +1150,6 @@ class MessageHandler:
# Add tools if using a supported model
if use_tools:
api_params["tools"] = get_tools_for_model()
api_params["tool_choice"] = "required" # Force the model to use tools when available
# Initialize variables to track tool responses
image_generation_used = False