diff --git a/src/System Application/App/AI/src/Azure OpenAI/Chat Completion/AOAIToolsImpl.Codeunit.al b/src/System Application/App/AI/src/Azure OpenAI/Chat Completion/AOAIToolsImpl.Codeunit.al index c2403f7635..1f451ed6fc 100644 --- a/src/System Application/App/AI/src/Azure OpenAI/Chat Completion/AOAIToolsImpl.Codeunit.al +++ b/src/System Application/App/AI/src/Azure OpenAI/Chat Completion/AOAIToolsImpl.Codeunit.al @@ -21,12 +21,10 @@ codeunit 7778 "AOAI Tools Impl" ToolIdDoesNotExistErr: Label 'Tool id does not exist.'; ToolObjectInvalidErr: Label '%1 object does not contain %2 property.', Comment = '%1 is the object name and %2 is the property that is missing.'; ToolTypeErr: Label 'Tool type must be of function type.'; - CapabilityBlockedErr: Label 'Tools capability is currently blocked for non Microsoft features.'; [NonDebuggable] procedure AddTool(NewTool: JsonObject; CallerModuleInfo: ModuleInfo) begin - CapabilityBlocked(CallerModuleInfo); Initialize(); if ValidateTool(NewTool) then Tools.Add(NewTool); @@ -147,15 +145,4 @@ codeunit 7778 "AOAI Tools Impl" end; exit(true); end; - - [NonDebuggable] - local procedure CapabilityBlocked(CallerModuleInfo: ModuleInfo) - var - CurrentModuleInfo: ModuleInfo; - begin - NavApp.GetCallerModuleInfo(CurrentModuleInfo); - - if CallerModuleInfo.Publisher <> CurrentModuleInfo.Publisher then - Error(CapabilityBlockedErr); - end; }