From e335ba5556761a76dbd91f657eb30ec7b52fe16e Mon Sep 17 00:00:00 2001 From: efontan-dialpad Date: Fri, 17 Mar 2023 16:35:54 -0300 Subject: [PATCH] Replace module name --- README.md | 18 +++++++++--------- api_test.go | 2 +- audio_test.go | 4 ++-- chat_stream_test.go | 4 ++-- chat_test.go | 4 ++-- completion_test.go | 6 +++--- edits_test.go | 6 +++--- embeddings_test.go | 4 ++-- files_test.go | 6 +++--- fine_tunes_test.go | 6 +++--- go.mod | 4 ++-- image_test.go | 4 ++-- models_test.go | 4 ++-- moderation_test.go | 4 ++-- request_builder_test.go | 2 +- stream_test.go | 4 ++-- 16 files changed, 41 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index 1eba10164..6e5e6c1ef 100644 --- a/README.md +++ b/README.md @@ -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` @@ -28,7 +28,7 @@ package main import ( "context" "fmt" - openai "github.com/sashabaranov/go-openai" + openai "github.com/efontan-dialpad/go-openai" ) func main() { @@ -69,7 +69,7 @@ package main import ( "context" "fmt" - openai "github.com/sashabaranov/go-openai" + openai "github.com/efontan-dialpad/go-openai" ) func main() { @@ -102,7 +102,7 @@ import ( "context" "fmt" "io" - openai "github.com/sashabaranov/go-openai" + openai "github.com/efontan-dialpad/go-openai" ) func main() { @@ -151,7 +151,7 @@ import ( "context" "fmt" - openai "github.com/sashabaranov/go-openai" + openai "github.com/efontan-dialpad/go-openai" ) func main() { @@ -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" ) @@ -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
@@ -287,7 +287,7 @@ import ( "os" "strings" - "github.com/sashabaranov/go-openai" + "github.com/efontan-dialpad/go-openai" ) func main() { diff --git a/api_test.go b/api_test.go index a5a0d1250..4da972944 100644 --- a/api_test.go +++ b/api_test.go @@ -1,7 +1,7 @@ package openai_test import ( - . "github.com/sashabaranov/go-openai" + . "github.com/efontan-dialpad/go-openai" "context" "errors" diff --git a/audio_test.go b/audio_test.go index 2a035c9fe..30a5b1477 100644 --- a/audio_test.go +++ b/audio_test.go @@ -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" diff --git a/chat_stream_test.go b/chat_stream_test.go index e3da2daf7..c963c6246 100644 --- a/chat_stream_test.go +++ b/chat_stream_test.go @@ -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" diff --git a/chat_test.go b/chat_test.go index 5c03ebf7b..f8800412b 100644 --- a/chat_test.go +++ b/chat_test.go @@ -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" diff --git a/completion_test.go b/completion_test.go index 9868eb2bb..62e16504f 100644 --- a/completion_test.go +++ b/completion_test.go @@ -1,9 +1,6 @@ package openai_test import ( - . "github.com/sashabaranov/go-openai" - "github.com/sashabaranov/go-openai/internal/test" - "context" "encoding/json" "errors" @@ -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) { diff --git a/edits_test.go b/edits_test.go index 6a16f7c2c..a03fa9db7 100644 --- a/edits_test.go +++ b/edits_test.go @@ -1,9 +1,6 @@ package openai_test import ( - . "github.com/sashabaranov/go-openai" - "github.com/sashabaranov/go-openai/internal/test" - "context" "encoding/json" "fmt" @@ -11,6 +8,9 @@ import ( "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. diff --git a/embeddings_test.go b/embeddings_test.go index 2aa48c51e..816826396 100644 --- a/embeddings_test.go +++ b/embeddings_test.go @@ -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) { diff --git a/files_test.go b/files_test.go index 6a78ce104..963db3c45 100644 --- a/files_test.go +++ b/files_test.go @@ -1,9 +1,6 @@ package openai_test import ( - . "github.com/sashabaranov/go-openai" - "github.com/sashabaranov/go-openai/internal/test" - "context" "encoding/json" "fmt" @@ -11,6 +8,9 @@ import ( "strconv" "testing" "time" + + . "github.com/efontan-dialpad/go-openai" + "github.com/efontan-dialpad/go-openai/internal/test" ) func TestFileUpload(t *testing.T) { diff --git a/fine_tunes_test.go b/fine_tunes_test.go index 1f6f96764..1b8febf78 100644 --- a/fine_tunes_test.go +++ b/fine_tunes_test.go @@ -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" diff --git a/go.mod b/go.mod index 42cc7b391..9d6a3836e 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/sashabaranov/go-openai +module github.com/efontan-dialpad/go-openai -go 1.18 +go 1.17 diff --git a/image_test.go b/image_test.go index b7949c896..3f18e8d13 100644 --- a/image_test.go +++ b/image_test.go @@ -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" diff --git a/models_test.go b/models_test.go index c96ece823..06c53ac60 100644 --- a/models_test.go +++ b/models_test.go @@ -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" diff --git a/moderation_test.go b/moderation_test.go index f50124534..925d47fc5 100644 --- a/moderation_test.go +++ b/moderation_test.go @@ -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" diff --git a/request_builder_test.go b/request_builder_test.go index 541d3913a..efc1aa133 100644 --- a/request_builder_test.go +++ b/request_builder_test.go @@ -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" diff --git a/stream_test.go b/stream_test.go index 8f89e6b85..aff341126 100644 --- a/stream_test.go +++ b/stream_test.go @@ -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"