Skip to content

Commit

Permalink
api/openai/files fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-gray101 committed Feb 20, 2024
1 parent 0dbee95 commit 788ef15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions api/openai/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions api/openai/files_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
)

Expand Down

0 comments on commit 788ef15

Please sign in to comment.