From 8ece863904b4f3bc9e63971467163e7dc4770606 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 6 Aug 2024 11:53:21 +0200 Subject: [PATCH] Fixups --- core/cli/explorer.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/cli/explorer.go b/core/cli/explorer.go index 44bd6421ed38..e0f92be81dec 100644 --- a/core/cli/explorer.go +++ b/core/cli/explorer.go @@ -3,7 +3,6 @@ package cli import ( cliContext "github.com/mudler/LocalAI/core/cli/context" "github.com/mudler/LocalAI/core/http" - "github.com/rs/zerolog/log" ) type ExplorerCMD struct { @@ -11,11 +10,7 @@ type ExplorerCMD struct { } func (explorer *ExplorerCMD) Run(ctx *cliContext.Context) error { - appHTTP, err := http.App(cl, ml, options) - if err != nil { - log.Error().Err(err).Msg("error during HTTP App construction") - return err - } + appHTTP := http.Explorer() return appHTTP.Listen(explorer.Address) }