Skip to content

Commit

Permalink
Revert protection
Browse files Browse the repository at this point in the history
  • Loading branch information
mszostok committed Mar 1, 2024
1 parent de577e6 commit 2640745
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/executor/ai/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
_ "embed"
"encoding/json"
"fmt"
"github.com/kubeshop/botkube-cloud-plugins/internal/auth"
"io"
"net/http"
"strings"
Expand Down Expand Up @@ -131,9 +132,9 @@ func (*AIFace) Help(context.Context) (api.Message, error) {
func main() {
executor.Serve(map[string]plugin.Plugin{
pluginName: &executor.Plugin{
Executor: &AIFace{
Executor: auth.NewProtectedExecutor(&AIFace{
httpClient: httpx.NewHTTPClient(),
},
}),
},
})
}

0 comments on commit 2640745

Please sign in to comment.