Skip to content

Commit

Permalink
Replace module name
Browse files Browse the repository at this point in the history
  • Loading branch information
efontan-dialpad committed Mar 17, 2023
1 parent ee23e85 commit e335ba5
Show file tree
Hide file tree
Showing 16 changed files with 41 additions and 41 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Go OpenAI
[![GoDoc](http://img.shields.io/badge/GoDoc-Reference-blue.svg)](https://godoc.org/github.com/sashabaranov/go-openai)
[![Go Report Card](https://goreportcard.com/badge/github.com/sashabaranov/go-openai)](https://goreportcard.com/report/github.com/sashabaranov/go-openai)
[![GoDoc](http://img.shields.io/badge/GoDoc-Reference-blue.svg)](https://godoc.org/github.com/efontan-dialpad/go-openai)
[![Go Report Card](https://goreportcard.com/badge/github.com/efontan-dialpad/go-openai)](https://goreportcard.com/report/github.com/efontan-dialpad/go-openai)
[![codecov](https://codecov.io/gh/sashabaranov/go-openai/branch/master/graph/badge.svg?token=bCbIfHLIsW)](https://codecov.io/gh/sashabaranov/go-openai)

> **Note**: the repository was recently renamed from `go-gpt3` to `go-openai`
Expand Down Expand Up @@ -28,7 +28,7 @@ package main
import (
"context"
"fmt"
openai "github.com/sashabaranov/go-openai"
openai "github.com/efontan-dialpad/go-openai"
)

func main() {
Expand Down Expand Up @@ -69,7 +69,7 @@ package main
import (
"context"
"fmt"
openai "github.com/sashabaranov/go-openai"
openai "github.com/efontan-dialpad/go-openai"
)

func main() {
Expand Down Expand Up @@ -102,7 +102,7 @@ import (
"context"
"fmt"
"io"
openai "github.com/sashabaranov/go-openai"
openai "github.com/efontan-dialpad/go-openai"
)

func main() {
Expand Down Expand Up @@ -151,7 +151,7 @@ import (
"context"
"fmt"

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

func main() {
Expand Down Expand Up @@ -183,7 +183,7 @@ import (
"context"
"encoding/base64"
"fmt"
openai "github.com/sashabaranov/go-openai"
openai "github.com/efontan-dialpad/go-openai"
"image/png"
"os"
)
Expand Down Expand Up @@ -271,7 +271,7 @@ config.HTTPClient = &http.Client{
c := openai.NewClientWithConfig(config)
```

See also: https://pkg.go.dev/github.com/sashabaranov/go-openai#ClientConfig
See also: https://pkg.go.dev/github.com/efontan-dialpad/go-openai#ClientConfig
</details>

<details>
Expand All @@ -287,7 +287,7 @@ import (
"os"
"strings"

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

func main() {
Expand Down
2 changes: 1 addition & 1 deletion api_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package openai_test

import (
. "github.com/sashabaranov/go-openai"
. "github.com/efontan-dialpad/go-openai"

"context"
"errors"
Expand Down
4 changes: 2 additions & 2 deletions audio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"path/filepath"
"strings"

. "github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/internal/test"
. "github.com/efontan-dialpad/go-openai"
"github.com/efontan-dialpad/go-openai/internal/test"

"context"
"testing"
Expand Down
4 changes: 2 additions & 2 deletions chat_stream_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package openai_test

import (
. "github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/internal/test"
. "github.com/efontan-dialpad/go-openai"
"github.com/efontan-dialpad/go-openai/internal/test"

"context"
"encoding/json"
Expand Down
4 changes: 2 additions & 2 deletions chat_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package openai_test

import (
. "github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/internal/test"
. "github.com/efontan-dialpad/go-openai"
"github.com/efontan-dialpad/go-openai/internal/test"

"context"
"encoding/json"
Expand Down
6 changes: 3 additions & 3 deletions completion_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package openai_test

import (
. "github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/internal/test"

"context"
"encoding/json"
"errors"
Expand All @@ -14,6 +11,9 @@ import (
"strings"
"testing"
"time"

. "github.com/efontan-dialpad/go-openai"
"github.com/efontan-dialpad/go-openai/internal/test"
)

func TestCompletionsWrongModel(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions edits_test.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package openai_test

import (
. "github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/internal/test"

"context"
"encoding/json"
"fmt"
"io"
"net/http"
"testing"
"time"

. "github.com/efontan-dialpad/go-openai"
"github.com/efontan-dialpad/go-openai/internal/test"
)

// TestEdits Tests the edits endpoint of the API using the mocked server.
Expand Down
4 changes: 2 additions & 2 deletions embeddings_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package openai_test

import (
. "github.com/sashabaranov/go-openai"

"bytes"
"encoding/json"
"testing"

. "github.com/efontan-dialpad/go-openai"
)

func TestEmbedding(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions files_test.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package openai_test

import (
. "github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/internal/test"

"context"
"encoding/json"
"fmt"
"net/http"
"strconv"
"testing"
"time"

. "github.com/efontan-dialpad/go-openai"
"github.com/efontan-dialpad/go-openai/internal/test"
)

func TestFileUpload(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions fine_tunes_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package openai_test

import (
. "github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/internal/test"

"context"
"encoding/json"
"fmt"
"net/http"
"testing"

. "github.com/efontan-dialpad/go-openai"
"github.com/efontan-dialpad/go-openai/internal/test"
)

const testFineTuneID = "fine-tune-id"
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/sashabaranov/go-openai
module github.com/efontan-dialpad/go-openai

go 1.18
go 1.17
4 changes: 2 additions & 2 deletions image_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package openai_test

import (
. "github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/internal/test"
. "github.com/efontan-dialpad/go-openai"
"github.com/efontan-dialpad/go-openai/internal/test"

"context"
"encoding/json"
Expand Down
4 changes: 2 additions & 2 deletions models_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package openai_test

import (
. "github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/internal/test"
. "github.com/efontan-dialpad/go-openai"
"github.com/efontan-dialpad/go-openai/internal/test"

"context"
"encoding/json"
Expand Down
4 changes: 2 additions & 2 deletions moderation_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package openai_test

import (
. "github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/internal/test"
. "github.com/efontan-dialpad/go-openai"
"github.com/efontan-dialpad/go-openai/internal/test"

"context"
"encoding/json"
Expand Down
2 changes: 1 addition & 1 deletion request_builder_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package openai //nolint:testpackage // testing private field

import (
"github.com/sashabaranov/go-openai/internal/test"
"github.com/efontan-dialpad/go-openai/internal/test"

"context"
"errors"
Expand Down
4 changes: 2 additions & 2 deletions stream_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package openai_test

import (
. "github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/internal/test"
. "github.com/efontan-dialpad/go-openai"
"github.com/efontan-dialpad/go-openai/internal/test"

"context"
"errors"
Expand Down

0 comments on commit e335ba5

Please sign in to comment.