mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-12-01 06:52:53 -05:00
feat: Improve execute terminal commands tool
This commit is contained in:
@ -158,11 +158,11 @@ QJsonArray ToolsFactory::getToolsDefinitions(
|
||||
}
|
||||
}
|
||||
|
||||
// if (requiredPerms.testFlag(LLMCore::ToolPermission::NetworkAccess)) {
|
||||
// if (!settings.allowNetworkAccess()) {
|
||||
// hasPermission = false;
|
||||
// }
|
||||
// }
|
||||
if (requiredPerms.testFlag(LLMCore::ToolPermission::NetworkAccess)) {
|
||||
if (!settings.allowNetworkAccess()) {
|
||||
hasPermission = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (hasPermission) {
|
||||
toolsArray.append(it.value()->getDefinition(format));
|
||||
|
||||
Reference in New Issue
Block a user