diff --git a/api/api.go b/core/http/api.go similarity index 99% rename from api/api.go rename to core/http/api.go index bc14fcb4c668..7d228152409e 100644 --- a/api/api.go +++ b/core/http/api.go @@ -1,4 +1,4 @@ -package api +package http import ( "encoding/json" diff --git a/api/api_test.go b/core/http/api_test.go similarity index 99% rename from api/api_test.go rename to core/http/api_test.go index a3e20177eb2d..9068b393e1a9 100644 --- a/api/api_test.go +++ b/core/http/api_test.go @@ -1,4 +1,4 @@ -package api_test +package http_test import ( "bytes" @@ -13,7 +13,7 @@ import ( "path/filepath" "runtime" - . "github.com/go-skynet/LocalAI/api" + . "github.com/go-skynet/LocalAI/core/http" "github.com/go-skynet/LocalAI/core/options" "github.com/go-skynet/LocalAI/metrics" "github.com/go-skynet/LocalAI/pkg/downloader" diff --git a/api/apt_suite_test.go b/core/http/apt_suite_test.go similarity index 90% rename from api/apt_suite_test.go rename to core/http/apt_suite_test.go index e3c15c048b14..0269a97321df 100644 --- a/api/apt_suite_test.go +++ b/core/http/apt_suite_test.go @@ -1,4 +1,4 @@ -package api_test +package http_test import ( "testing" diff --git a/main.go b/main.go index 52bb6e8daf2c..7e4262ee57bd 100644 --- a/main.go +++ b/main.go @@ -12,9 +12,9 @@ import ( "syscall" "time" - api "github.com/go-skynet/LocalAI/api" "github.com/go-skynet/LocalAI/core/backend" config "github.com/go-skynet/LocalAI/core/config" + api "github.com/go-skynet/LocalAI/core/http" "github.com/go-skynet/LocalAI/core/options" "github.com/go-skynet/LocalAI/internal" "github.com/go-skynet/LocalAI/metrics"