diff --git a/api/openai/files.go b/api/openai/files.go index f19e79d859f4..42fac9bb3021 100644 --- a/api/openai/files.go +++ b/api/openai/files.go @@ -4,14 +4,15 @@ import ( "encoding/json" "errors" "fmt" + "os" + "path/filepath" + "time" + config "github.com/go-skynet/LocalAI/api/config" - "github.com/go-skynet/LocalAI/api/options" + "github.com/go-skynet/LocalAI/core/options" "github.com/go-skynet/LocalAI/pkg/utils" "github.com/gofiber/fiber/v2" "github.com/rs/zerolog/log" - "os" - "path/filepath" - "time" ) var uploadedFiles []File diff --git a/api/openai/files_test.go b/api/openai/files_test.go index cb111b4ac6b9..57caca95f456 100644 --- a/api/openai/files_test.go +++ b/api/openai/files_test.go @@ -3,11 +3,6 @@ package openai import ( "encoding/json" "fmt" - config "github.com/go-skynet/LocalAI/api/config" - "github.com/go-skynet/LocalAI/api/options" - utils2 "github.com/go-skynet/LocalAI/pkg/utils" - "github.com/gofiber/fiber/v2" - "github.com/stretchr/testify/assert" "io" "mime/multipart" "net/http" @@ -16,6 +11,12 @@ import ( "path/filepath" "strings" + config "github.com/go-skynet/LocalAI/api/config" + "github.com/go-skynet/LocalAI/core/options" + utils2 "github.com/go-skynet/LocalAI/pkg/utils" + "github.com/gofiber/fiber/v2" + "github.com/stretchr/testify/assert" + "testing" )