Skip to content

Commit

Permalink
Fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Aug 6, 2024
1 parent 11a1e7d commit 8ece863
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions core/cli/explorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@ 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 {
Address string `env:"LOCALAI_ADDRESS,ADDRESS" default:":8080" help:"Bind address for the API server" group:"api"`
}

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)
}

0 comments on commit 8ece863

Please sign in to comment.