diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 70abda1..26d4d2d 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -20,7 +20,7 @@ release: footer: | ## Full Changelog - https://github.com/TannerKvarfordt/gopenai/compare/{{ .PreviousTag }}...{{ .Tag }} + https://github.com/Kardbord/gopenai/compare/{{ .PreviousTag }}...{{ .Tag }} # modelines # # yaml-language-server: $schema=https://goreleaser.com/static/schema.json diff --git a/README.md b/README.md index f41ea32..cde7bce 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # gopenai -[![Unit Tests](https://github.com/TannerKvarfordt/gopenai/actions/workflows/unit-tests.yml/badge.svg?branch=main)](https://github.com/TannerKvarfordt/gopenai/actions/workflows/unit-tests.yml) -[![CodeQL](https://github.com/TannerKvarfordt/gopenai/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/TannerKvarfordt/gopenai/actions/workflows/codeql.yml) -[![Go Report Card](https://goreportcard.com/badge/github.com/TannerKvarfordt/gopenai)](https://goreportcard.com/report/github.com/TannerKvarfordt/gopenai) -[![Go Reference](https://pkg.go.dev/badge/github.com/TannerKvarfordt/gopenai.svg)](https://pkg.go.dev/github.com/TannerKvarfordt/gopenai) +[![Unit Tests](https://github.com/Kardbord/gopenai/actions/workflows/unit-tests.yml/badge.svg?branch=main)](https://github.com/Kardbord/gopenai/actions/workflows/unit-tests.yml) +[![CodeQL](https://github.com/Kardbord/gopenai/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/Kardbord/gopenai/actions/workflows/codeql.yml) +[![Go Report Card](https://goreportcard.com/badge/github.com/Kardbord/gopenai)](https://goreportcard.com/report/github.com/Kardbord/gopenai) +[![Go Reference](https://pkg.go.dev/badge/github.com/Kardbord/gopenai.svg)](https://pkg.go.dev/github.com/Kardbord/gopenai) Go (Golang) bindings for the [OpenAI API](https://beta.openai.com/docs/api-reference/introduction). This library is community maintained and unofficial. diff --git a/audio/audio.go b/audio/audio.go index 2d0e860..291fa68 100644 --- a/audio/audio.go +++ b/audio/audio.go @@ -13,7 +13,7 @@ import ( "net/http" "path/filepath" - "github.com/TannerKvarfordt/gopenai/common" + "github.com/Kardbord/gopenai/common" ) const ( diff --git a/audio/audio_test.go b/audio/audio_test.go index 83a6db9..b9bcba1 100644 --- a/audio/audio_test.go +++ b/audio/audio_test.go @@ -5,9 +5,9 @@ import ( "os" "testing" - "github.com/TannerKvarfordt/gopenai/audio" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/common" + "github.com/Kardbord/gopenai/audio" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/common" ) const ( diff --git a/authentication/authentication_test.go b/authentication/authentication_test.go index eb0c34c..2e2612e 100644 --- a/authentication/authentication_test.go +++ b/authentication/authentication_test.go @@ -3,7 +3,7 @@ package authentication_test import ( "testing" - "github.com/TannerKvarfordt/gopenai/authentication" + "github.com/Kardbord/gopenai/authentication" ) func TestAuthentication(t *testing.T) { diff --git a/chat/chat.go b/chat/chat.go index db36326..c93b3f9 100644 --- a/chat/chat.go +++ b/chat/chat.go @@ -10,8 +10,8 @@ import ( "errors" "net/http" - "github.com/TannerKvarfordt/gopenai/common" - "github.com/TannerKvarfordt/gopenai/moderations" + "github.com/Kardbord/gopenai/common" + "github.com/Kardbord/gopenai/moderations" ) const Endpoint = common.BaseURL + "chat/completions" diff --git a/chat/chat_test.go b/chat/chat_test.go index cd7fea7..0602d07 100644 --- a/chat/chat_test.go +++ b/chat/chat_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/chat" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/chat" ) const OpenAITokenEnv = "OPENAI_API_KEY" @@ -24,7 +24,7 @@ func TestChat(t *testing.T) { Content: "Hello!", }, }, - User: "https://github.com/TannerKvarfordt/gopenai", + User: "https://github.com/Kardbord/gopenai", }, nil) if err != nil { t.Fatal(err) diff --git a/common/common.go b/common/common.go index f4e2bfa..bc79690 100644 --- a/common/common.go +++ b/common/common.go @@ -14,7 +14,7 @@ import ( "reflect" "strings" - auth "github.com/TannerKvarfordt/gopenai/authentication" + auth "github.com/Kardbord/gopenai/authentication" ) const ( diff --git a/completions/completions.go b/completions/completions.go index 3a286ce..8a76f42 100644 --- a/completions/completions.go +++ b/completions/completions.go @@ -10,8 +10,8 @@ import ( "errors" "net/http" - "github.com/TannerKvarfordt/gopenai/common" - "github.com/TannerKvarfordt/gopenai/moderations" + "github.com/Kardbord/gopenai/common" + "github.com/Kardbord/gopenai/moderations" ) // The completions API endpoint. diff --git a/completions/completions_test.go b/completions/completions_test.go index 2110448..152e015 100644 --- a/completions/completions_test.go +++ b/completions/completions_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/completions" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/completions" _ "github.com/joho/godotenv/autoload" ) @@ -25,7 +25,7 @@ func TestCompletions(t *testing.T) { PresencePenalty: 0.0, FrequencyPenalty: 0.0, BestOf: nil, - User: "https://github.com/TannerKvarfordt/gopenai", + User: "https://github.com/Kardbord/gopenai", }, nil) if err != nil { t.Fatal(err) diff --git a/edits/edits.go b/edits/edits.go index 38302dd..e098662 100644 --- a/edits/edits.go +++ b/edits/edits.go @@ -12,8 +12,8 @@ import ( "errors" "net/http" - "github.com/TannerKvarfordt/gopenai/common" - "github.com/TannerKvarfordt/gopenai/moderations" + "github.com/Kardbord/gopenai/common" + "github.com/Kardbord/gopenai/moderations" ) const Endpoint = common.BaseURL + "edits" diff --git a/edits/edits_test.go b/edits/edits_test.go index 6e61d0b..00295db 100644 --- a/edits/edits_test.go +++ b/edits/edits_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/edits" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/edits" _ "github.com/joho/godotenv/autoload" ) diff --git a/embeddings/embeddings.go b/embeddings/embeddings.go index 8e8718b..9ffcef3 100644 --- a/embeddings/embeddings.go +++ b/embeddings/embeddings.go @@ -10,8 +10,8 @@ import ( "errors" "net/http" - "github.com/TannerKvarfordt/gopenai/common" - "github.com/TannerKvarfordt/gopenai/moderations" + "github.com/Kardbord/gopenai/common" + "github.com/Kardbord/gopenai/moderations" ) const Endpoint = common.BaseURL + "embeddings" diff --git a/embeddings/embeddings_test.go b/embeddings/embeddings_test.go index 21c6149..63d2344 100644 --- a/embeddings/embeddings_test.go +++ b/embeddings/embeddings_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/embeddings" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/embeddings" _ "github.com/joho/godotenv/autoload" ) @@ -21,7 +21,7 @@ func TestEmbeddings(t *testing.T) { resp, err := embeddings.MakeRequest(&embeddings.Request{ Model: "text-embedding-ada-002", Input: []string{input}, - User: "https://github.com/TannerKvarfordt/gopenai", + User: "https://github.com/Kardbord/gopenai", }, nil) if err != nil { t.Fatal(err) diff --git a/examples/audio/audio-example.go b/examples/audio/audio-example.go index 10077ca..45cb2f5 100644 --- a/examples/audio/audio-example.go +++ b/examples/audio/audio-example.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/TannerKvarfordt/gopenai/audio" - "github.com/TannerKvarfordt/gopenai/authentication" + "github.com/Kardbord/gopenai/audio" + "github.com/Kardbord/gopenai/authentication" ) const OpenAITokenEnv = "OPENAI_API_KEY" diff --git a/examples/chat/chat-example.go b/examples/chat/chat-example.go index 0bf734b..9a0b9cf 100644 --- a/examples/chat/chat-example.go +++ b/examples/chat/chat-example.go @@ -6,8 +6,8 @@ import ( "os" "strings" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/chat" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/chat" ) const OpenAITokenEnv = "OPENAI_API_KEY" @@ -46,7 +46,7 @@ func main() { Role: chat.UserRole, Content: input, }), - User: "https://github.com/TannerKvarfordt/gopenai", + User: "https://github.com/Kardbord/gopenai", }, nil) if err != nil { diff --git a/examples/completions/completions-example.go b/examples/completions/completions-example.go index 83dd8fa..cd338ce 100644 --- a/examples/completions/completions-example.go +++ b/examples/completions/completions-example.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/completions" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/completions" _ "github.com/joho/godotenv/autoload" ) @@ -26,7 +26,7 @@ func main() { PresencePenalty: 0.0, FrequencyPenalty: 0.0, BestOf: nil, - User: "https://github.com/TannerKvarfordt/gopenai", + User: "https://github.com/Kardbord/gopenai", }, nil) if err != nil { fmt.Println(err) diff --git a/examples/edits/edits-example.go b/examples/edits/edits-example.go index e88e7b2..5467a63 100644 --- a/examples/edits/edits-example.go +++ b/examples/edits/edits-example.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/edits" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/edits" _ "github.com/joho/godotenv/autoload" ) diff --git a/examples/embeddings/embeddings-example.go b/examples/embeddings/embeddings-example.go index 8872b70..3b20c69 100644 --- a/examples/embeddings/embeddings-example.go +++ b/examples/embeddings/embeddings-example.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/embeddings" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/embeddings" _ "github.com/joho/godotenv/autoload" ) @@ -21,7 +21,7 @@ func main() { resp, _, err := embeddings.MakeModeratedRequest(&embeddings.Request{ Model: "text-embedding-ada-002", Input: []string{input}, - User: "https://github.com/TannerKvarfordt/gopenai", + User: "https://github.com/Kardbord/gopenai", }, nil) if err != nil { fmt.Println(err) diff --git a/examples/files/files-example.go b/examples/files/files-example.go index 3c27dce..d0e51fd 100644 --- a/examples/files/files-example.go +++ b/examples/files/files-example.go @@ -6,8 +6,8 @@ import ( "os" "time" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/files" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/files" _ "github.com/joho/godotenv/autoload" ) diff --git a/examples/finetunes/finetunes-example.go b/examples/finetunes/finetunes-example.go index c492699..95b5063 100644 --- a/examples/finetunes/finetunes-example.go +++ b/examples/finetunes/finetunes-example.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/finetunes" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/finetunes" _ "github.com/joho/godotenv/autoload" ) diff --git a/examples/images/images-example.go b/examples/images/images-example.go index 90a0a93..91adcb2 100644 --- a/examples/images/images-example.go +++ b/examples/images/images-example.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/images" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/images" _ "github.com/joho/godotenv/autoload" ) @@ -23,7 +23,7 @@ func create(model, size string) (*images.Response, error) { resp, _, err := images.MakeModeratedCreationRequest(&images.CreationRequest{ Prompt: prompt, Size: size, - User: "https://github.com/TannerKvarfordt/gopenai", + User: "https://github.com/Kardbord/gopenai", Model: model, }, nil) if err != nil { @@ -41,7 +41,7 @@ func variation(imagename, image string) error { Image: image, ImageName: imagename, Size: images.Dalle2SmallImage, - User: "https://github.com/TannerKvarfordt/gopenai", + User: "https://github.com/Kardbord/gopenai", }, nil) if err != nil { return err diff --git a/examples/models/models-example.go b/examples/models/models-example.go index 9799ea3..95bd0c1 100644 --- a/examples/models/models-example.go +++ b/examples/models/models-example.go @@ -5,8 +5,8 @@ import ( "fmt" "os" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/models" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/models" _ "github.com/joho/godotenv/autoload" ) diff --git a/examples/moderations/moderations-example.go b/examples/moderations/moderations-example.go index 70c5405..d0790b3 100644 --- a/examples/moderations/moderations-example.go +++ b/examples/moderations/moderations-example.go @@ -5,8 +5,8 @@ import ( "fmt" "os" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/moderations" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/moderations" _ "github.com/joho/godotenv/autoload" ) diff --git a/files/files.go b/files/files.go index 3571b05..f123f95 100644 --- a/files/files.go +++ b/files/files.go @@ -15,7 +15,7 @@ import ( "net/http" "os" - "github.com/TannerKvarfordt/gopenai/common" + "github.com/Kardbord/gopenai/common" ) const Endpoint = common.BaseURL + "files" diff --git a/files/files_test.go b/files/files_test.go index a2f4e37..418aa9a 100644 --- a/files/files_test.go +++ b/files/files_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/files" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/files" _ "github.com/joho/godotenv/autoload" ) diff --git a/finetunes/finetunes.go b/finetunes/finetunes.go index f4515ff..9b309cb 100644 --- a/finetunes/finetunes.go +++ b/finetunes/finetunes.go @@ -14,9 +14,9 @@ import ( "fmt" "net/http" - "github.com/TannerKvarfordt/gopenai/common" - "github.com/TannerKvarfordt/gopenai/files" - "github.com/TannerKvarfordt/gopenai/models" + "github.com/Kardbord/gopenai/common" + "github.com/Kardbord/gopenai/files" + "github.com/Kardbord/gopenai/models" ) const Endpoint = common.BaseURL + "fine-tunes" diff --git a/finetunes/finetunes_test.go b/finetunes/finetunes_test.go index c4b3d9d..55e2c38 100644 --- a/finetunes/finetunes_test.go +++ b/finetunes/finetunes_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/finetunes" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/finetunes" _ "github.com/joho/godotenv/autoload" ) diff --git a/go.mod b/go.mod index 5d389b0..63f4452 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/TannerKvarfordt/gopenai +module github.com/Kardbord/gopenai go 1.19 diff --git a/images/images.go b/images/images.go index 3e7e6b1..ee195c0 100644 --- a/images/images.go +++ b/images/images.go @@ -13,8 +13,8 @@ import ( "mime/multipart" "net/http" - "github.com/TannerKvarfordt/gopenai/common" - "github.com/TannerKvarfordt/gopenai/moderations" + "github.com/Kardbord/gopenai/common" + "github.com/Kardbord/gopenai/moderations" ) const ( diff --git a/images/images_test.go b/images/images_test.go index 18fa86b..00dbf8a 100644 --- a/images/images_test.go +++ b/images/images_test.go @@ -6,8 +6,8 @@ import ( "os" "testing" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/images" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/images" _ "github.com/joho/godotenv/autoload" ) @@ -25,7 +25,7 @@ func create(model, size string) (*images.Response, error) { resp, err := images.MakeCreationRequest(&images.CreationRequest{ Prompt: prompt, Size: size, - User: "https://github.com/TannerKvarfordt/gopenai", + User: "https://github.com/Kardbord/gopenai", Model: model, }, nil) if err != nil { @@ -46,7 +46,7 @@ func variation(model, imagename, image string) error { Image: image, ImageName: imagename, Size: images.Dalle2SmallImage, - User: "https://github.com/TannerKvarfordt/gopenai", + User: "https://github.com/Kardbord/gopenai", Model: model, }, nil) if err != nil { diff --git a/models/models.go b/models/models.go index e62fa84..9eb3aae 100644 --- a/models/models.go +++ b/models/models.go @@ -12,7 +12,7 @@ import ( "errors" "net/http" - "github.com/TannerKvarfordt/gopenai/common" + "github.com/Kardbord/gopenai/common" ) // The models API endpoint. diff --git a/models/models_test.go b/models/models_test.go index fd76c2b..6a37d2f 100644 --- a/models/models_test.go +++ b/models/models_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/models" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/models" _ "github.com/joho/godotenv/autoload" ) diff --git a/moderations/moderations.go b/moderations/moderations.go index a8359da..a050f91 100644 --- a/moderations/moderations.go +++ b/moderations/moderations.go @@ -8,7 +8,7 @@ import ( "errors" "net/http" - "github.com/TannerKvarfordt/gopenai/common" + "github.com/Kardbord/gopenai/common" ) // The moderations API endpoint. diff --git a/moderations/moderations_test.go b/moderations/moderations_test.go index 6e02ca4..bc2835d 100644 --- a/moderations/moderations_test.go +++ b/moderations/moderations_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/TannerKvarfordt/gopenai/authentication" - "github.com/TannerKvarfordt/gopenai/moderations" + "github.com/Kardbord/gopenai/authentication" + "github.com/Kardbord/gopenai/moderations" _ "github.com/joho/godotenv/autoload" )