Skip to content

Commit

Permalink
Updated package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kardbord committed Dec 9, 2023
1 parent 7f5caf4 commit ac38704
Show file tree
Hide file tree
Showing 35 changed files with 76 additions and 76 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion audio/audio.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"net/http"
"path/filepath"

"github.com/TannerKvarfordt/gopenai/common"
"github.com/Kardbord/gopenai/common"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions audio/audio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion authentication/authentication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package authentication_test
import (
"testing"

"github.com/TannerKvarfordt/gopenai/authentication"
"github.com/Kardbord/gopenai/authentication"
)

func TestAuthentication(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions chat/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions chat/chat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"reflect"
"strings"

auth "github.com/TannerKvarfordt/gopenai/authentication"
auth "github.com/Kardbord/gopenai/authentication"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions completions/completions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions completions/completions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions edits/edits.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions edits/edits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions embeddings/embeddings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions embeddings/embeddings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions examples/audio/audio-example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions examples/chat/chat-example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions examples/completions/completions-example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions examples/edits/edits-example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
6 changes: 3 additions & 3 deletions examples/embeddings/embeddings-example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions examples/files/files-example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions examples/finetunes/finetunes-example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
8 changes: 4 additions & 4 deletions examples/images/images-example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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 {
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/models/models-example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions examples/moderations/moderations-example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion files/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"net/http"
"os"

"github.com/TannerKvarfordt/gopenai/common"
"github.com/Kardbord/gopenai/common"
)

const Endpoint = common.BaseURL + "files"
Expand Down
4 changes: 2 additions & 2 deletions files/files_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
6 changes: 3 additions & 3 deletions finetunes/finetunes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions finetunes/finetunes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/TannerKvarfordt/gopenai
module github.com/Kardbord/gopenai

go 1.19

Expand Down
4 changes: 2 additions & 2 deletions images/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Loading

0 comments on commit ac38704

Please sign in to comment.