Skip to content

Commit

Permalink
sort import
Browse files Browse the repository at this point in the history
  • Loading branch information
aceld committed Jun 16, 2023
1 parent e2a23c5 commit 330ec63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,9 @@ import (
"context"
"encoding/gob"
"fmt"
"github.com/sashabaranov/go-openai"
"os"

"github.com/sashabaranov/go-openai"
)

func getEmbedding(ctx context.Context, client *openai.Client, input []string) ([]float32, error) {
Expand Down Expand Up @@ -607,11 +608,12 @@ import (
"context"
"encoding/gob"
"fmt"
"github.com/sashabaranov/go-openai"
"io/ioutil"
"os"
"sort"
"strings"

"github.com/sashabaranov/go-openai"
)

func getEmbedding(ctx context.Context, client *openai.Client, input []string) ([]float32, error) {
Expand Down
5 changes: 3 additions & 2 deletions embeddings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
"context"
"encoding/json"
"fmt"
. "github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/internal/test/checks"
"math"
"net/http"
"testing"

. "github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/internal/test/checks"
)

func TestEmbedding(t *testing.T) {
Expand Down

0 comments on commit 330ec63

Please sign in to comment.