Skip to content

Commit ac38704

Browse files
committed
Updated package name
1 parent 7f5caf4 commit ac38704

35 files changed

+76
-76
lines changed

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ release:
2020
footer: |
2121
## Full Changelog
2222
23-
https://github.com/TannerKvarfordt/gopenai/compare/{{ .PreviousTag }}...{{ .Tag }}
23+
https://github.com/Kardbord/gopenai/compare/{{ .PreviousTag }}...{{ .Tag }}
2424
2525
# modelines #
2626
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# gopenai
22

3-
[![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)
4-
[![CodeQL](https://github.com/TannerKvarfordt/gopenai/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/TannerKvarfordt/gopenai/actions/workflows/codeql.yml)
5-
[![Go Report Card](https://goreportcard.com/badge/github.com/TannerKvarfordt/gopenai)](https://goreportcard.com/report/github.com/TannerKvarfordt/gopenai)
6-
[![Go Reference](https://pkg.go.dev/badge/github.com/TannerKvarfordt/gopenai.svg)](https://pkg.go.dev/github.com/TannerKvarfordt/gopenai)
3+
[![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)
4+
[![CodeQL](https://github.com/Kardbord/gopenai/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/Kardbord/gopenai/actions/workflows/codeql.yml)
5+
[![Go Report Card](https://goreportcard.com/badge/github.com/Kardbord/gopenai)](https://goreportcard.com/report/github.com/Kardbord/gopenai)
6+
[![Go Reference](https://pkg.go.dev/badge/github.com/Kardbord/gopenai.svg)](https://pkg.go.dev/github.com/Kardbord/gopenai)
77

88
Go (Golang) bindings for the [OpenAI API](https://beta.openai.com/docs/api-reference/introduction). This library is community maintained and unofficial.
99

audio/audio.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"net/http"
1414
"path/filepath"
1515

16-
"github.com/TannerKvarfordt/gopenai/common"
16+
"github.com/Kardbord/gopenai/common"
1717
)
1818

1919
const (

audio/audio_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"os"
66
"testing"
77

8-
"github.com/TannerKvarfordt/gopenai/audio"
9-
"github.com/TannerKvarfordt/gopenai/authentication"
10-
"github.com/TannerKvarfordt/gopenai/common"
8+
"github.com/Kardbord/gopenai/audio"
9+
"github.com/Kardbord/gopenai/authentication"
10+
"github.com/Kardbord/gopenai/common"
1111
)
1212

1313
const (

authentication/authentication_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package authentication_test
33
import (
44
"testing"
55

6-
"github.com/TannerKvarfordt/gopenai/authentication"
6+
"github.com/Kardbord/gopenai/authentication"
77
)
88

99
func TestAuthentication(t *testing.T) {

chat/chat.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"errors"
1111
"net/http"
1212

13-
"github.com/TannerKvarfordt/gopenai/common"
14-
"github.com/TannerKvarfordt/gopenai/moderations"
13+
"github.com/Kardbord/gopenai/common"
14+
"github.com/Kardbord/gopenai/moderations"
1515
)
1616

1717
const Endpoint = common.BaseURL + "chat/completions"

chat/chat_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"os"
55
"testing"
66

7-
"github.com/TannerKvarfordt/gopenai/authentication"
8-
"github.com/TannerKvarfordt/gopenai/chat"
7+
"github.com/Kardbord/gopenai/authentication"
8+
"github.com/Kardbord/gopenai/chat"
99
)
1010

1111
const OpenAITokenEnv = "OPENAI_API_KEY"
@@ -24,7 +24,7 @@ func TestChat(t *testing.T) {
2424
Content: "Hello!",
2525
},
2626
},
27-
User: "https://github.com/TannerKvarfordt/gopenai",
27+
User: "https://github.com/Kardbord/gopenai",
2828
}, nil)
2929
if err != nil {
3030
t.Fatal(err)

common/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"reflect"
1515
"strings"
1616

17-
auth "github.com/TannerKvarfordt/gopenai/authentication"
17+
auth "github.com/Kardbord/gopenai/authentication"
1818
)
1919

2020
const (

completions/completions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"errors"
1111
"net/http"
1212

13-
"github.com/TannerKvarfordt/gopenai/common"
14-
"github.com/TannerKvarfordt/gopenai/moderations"
13+
"github.com/Kardbord/gopenai/common"
14+
"github.com/Kardbord/gopenai/moderations"
1515
)
1616

1717
// The completions API endpoint.

completions/completions_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"os"
55
"testing"
66

7-
"github.com/TannerKvarfordt/gopenai/authentication"
8-
"github.com/TannerKvarfordt/gopenai/completions"
7+
"github.com/Kardbord/gopenai/authentication"
8+
"github.com/Kardbord/gopenai/completions"
99
_ "github.com/joho/godotenv/autoload"
1010
)
1111

@@ -25,7 +25,7 @@ func TestCompletions(t *testing.T) {
2525
PresencePenalty: 0.0,
2626
FrequencyPenalty: 0.0,
2727
BestOf: nil,
28-
User: "https://github.com/TannerKvarfordt/gopenai",
28+
User: "https://github.com/Kardbord/gopenai",
2929
}, nil)
3030
if err != nil {
3131
t.Fatal(err)

edits/edits.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"errors"
1313
"net/http"
1414

15-
"github.com/TannerKvarfordt/gopenai/common"
16-
"github.com/TannerKvarfordt/gopenai/moderations"
15+
"github.com/Kardbord/gopenai/common"
16+
"github.com/Kardbord/gopenai/moderations"
1717
)
1818

1919
const Endpoint = common.BaseURL + "edits"

edits/edits_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"os"
55
"testing"
66

7-
"github.com/TannerKvarfordt/gopenai/authentication"
8-
"github.com/TannerKvarfordt/gopenai/edits"
7+
"github.com/Kardbord/gopenai/authentication"
8+
"github.com/Kardbord/gopenai/edits"
99
_ "github.com/joho/godotenv/autoload"
1010
)
1111

embeddings/embeddings.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"errors"
1111
"net/http"
1212

13-
"github.com/TannerKvarfordt/gopenai/common"
14-
"github.com/TannerKvarfordt/gopenai/moderations"
13+
"github.com/Kardbord/gopenai/common"
14+
"github.com/Kardbord/gopenai/moderations"
1515
)
1616

1717
const Endpoint = common.BaseURL + "embeddings"

embeddings/embeddings_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"os"
55
"testing"
66

7-
"github.com/TannerKvarfordt/gopenai/authentication"
8-
"github.com/TannerKvarfordt/gopenai/embeddings"
7+
"github.com/Kardbord/gopenai/authentication"
8+
"github.com/Kardbord/gopenai/embeddings"
99
_ "github.com/joho/godotenv/autoload"
1010
)
1111

@@ -21,7 +21,7 @@ func TestEmbeddings(t *testing.T) {
2121
resp, err := embeddings.MakeRequest(&embeddings.Request{
2222
Model: "text-embedding-ada-002",
2323
Input: []string{input},
24-
User: "https://github.com/TannerKvarfordt/gopenai",
24+
User: "https://github.com/Kardbord/gopenai",
2525
}, nil)
2626
if err != nil {
2727
t.Fatal(err)

examples/audio/audio-example.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/TannerKvarfordt/gopenai/audio"
8-
"github.com/TannerKvarfordt/gopenai/authentication"
7+
"github.com/Kardbord/gopenai/audio"
8+
"github.com/Kardbord/gopenai/authentication"
99
)
1010

1111
const OpenAITokenEnv = "OPENAI_API_KEY"

examples/chat/chat-example.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"os"
77
"strings"
88

9-
"github.com/TannerKvarfordt/gopenai/authentication"
10-
"github.com/TannerKvarfordt/gopenai/chat"
9+
"github.com/Kardbord/gopenai/authentication"
10+
"github.com/Kardbord/gopenai/chat"
1111
)
1212

1313
const OpenAITokenEnv = "OPENAI_API_KEY"
@@ -46,7 +46,7 @@ func main() {
4646
Role: chat.UserRole,
4747
Content: input,
4848
}),
49-
User: "https://github.com/TannerKvarfordt/gopenai",
49+
User: "https://github.com/Kardbord/gopenai",
5050
}, nil)
5151

5252
if err != nil {

examples/completions/completions-example.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/TannerKvarfordt/gopenai/authentication"
8-
"github.com/TannerKvarfordt/gopenai/completions"
7+
"github.com/Kardbord/gopenai/authentication"
8+
"github.com/Kardbord/gopenai/completions"
99
_ "github.com/joho/godotenv/autoload"
1010
)
1111

@@ -26,7 +26,7 @@ func main() {
2626
PresencePenalty: 0.0,
2727
FrequencyPenalty: 0.0,
2828
BestOf: nil,
29-
User: "https://github.com/TannerKvarfordt/gopenai",
29+
User: "https://github.com/Kardbord/gopenai",
3030
}, nil)
3131
if err != nil {
3232
fmt.Println(err)

examples/edits/edits-example.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/TannerKvarfordt/gopenai/authentication"
8-
"github.com/TannerKvarfordt/gopenai/edits"
7+
"github.com/Kardbord/gopenai/authentication"
8+
"github.com/Kardbord/gopenai/edits"
99
_ "github.com/joho/godotenv/autoload"
1010
)
1111

examples/embeddings/embeddings-example.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/TannerKvarfordt/gopenai/authentication"
8-
"github.com/TannerKvarfordt/gopenai/embeddings"
7+
"github.com/Kardbord/gopenai/authentication"
8+
"github.com/Kardbord/gopenai/embeddings"
99
_ "github.com/joho/godotenv/autoload"
1010
)
1111

@@ -21,7 +21,7 @@ func main() {
2121
resp, _, err := embeddings.MakeModeratedRequest(&embeddings.Request{
2222
Model: "text-embedding-ada-002",
2323
Input: []string{input},
24-
User: "https://github.com/TannerKvarfordt/gopenai",
24+
User: "https://github.com/Kardbord/gopenai",
2525
}, nil)
2626
if err != nil {
2727
fmt.Println(err)

examples/files/files-example.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"os"
77
"time"
88

9-
"github.com/TannerKvarfordt/gopenai/authentication"
10-
"github.com/TannerKvarfordt/gopenai/files"
9+
"github.com/Kardbord/gopenai/authentication"
10+
"github.com/Kardbord/gopenai/files"
1111
_ "github.com/joho/godotenv/autoload"
1212
)
1313

examples/finetunes/finetunes-example.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/TannerKvarfordt/gopenai/authentication"
8-
"github.com/TannerKvarfordt/gopenai/finetunes"
7+
"github.com/Kardbord/gopenai/authentication"
8+
"github.com/Kardbord/gopenai/finetunes"
99
_ "github.com/joho/godotenv/autoload"
1010
)
1111

examples/images/images-example.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/TannerKvarfordt/gopenai/authentication"
8-
"github.com/TannerKvarfordt/gopenai/images"
7+
"github.com/Kardbord/gopenai/authentication"
8+
"github.com/Kardbord/gopenai/images"
99
_ "github.com/joho/godotenv/autoload"
1010
)
1111

@@ -23,7 +23,7 @@ func create(model, size string) (*images.Response, error) {
2323
resp, _, err := images.MakeModeratedCreationRequest(&images.CreationRequest{
2424
Prompt: prompt,
2525
Size: size,
26-
User: "https://github.com/TannerKvarfordt/gopenai",
26+
User: "https://github.com/Kardbord/gopenai",
2727
Model: model,
2828
}, nil)
2929
if err != nil {
@@ -41,7 +41,7 @@ func variation(imagename, image string) error {
4141
Image: image,
4242
ImageName: imagename,
4343
Size: images.Dalle2SmallImage,
44-
User: "https://github.com/TannerKvarfordt/gopenai",
44+
User: "https://github.com/Kardbord/gopenai",
4545
}, nil)
4646
if err != nil {
4747
return err

examples/models/models-example.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"fmt"
66
"os"
77

8-
"github.com/TannerKvarfordt/gopenai/authentication"
9-
"github.com/TannerKvarfordt/gopenai/models"
8+
"github.com/Kardbord/gopenai/authentication"
9+
"github.com/Kardbord/gopenai/models"
1010
_ "github.com/joho/godotenv/autoload"
1111
)
1212

examples/moderations/moderations-example.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"fmt"
66
"os"
77

8-
"github.com/TannerKvarfordt/gopenai/authentication"
9-
"github.com/TannerKvarfordt/gopenai/moderations"
8+
"github.com/Kardbord/gopenai/authentication"
9+
"github.com/Kardbord/gopenai/moderations"
1010
_ "github.com/joho/godotenv/autoload"
1111
)
1212

files/files.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"net/http"
1616
"os"
1717

18-
"github.com/TannerKvarfordt/gopenai/common"
18+
"github.com/Kardbord/gopenai/common"
1919
)
2020

2121
const Endpoint = common.BaseURL + "files"

files/files_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/TannerKvarfordt/gopenai/authentication"
11-
"github.com/TannerKvarfordt/gopenai/files"
10+
"github.com/Kardbord/gopenai/authentication"
11+
"github.com/Kardbord/gopenai/files"
1212
_ "github.com/joho/godotenv/autoload"
1313
)
1414

finetunes/finetunes.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import (
1414
"fmt"
1515
"net/http"
1616

17-
"github.com/TannerKvarfordt/gopenai/common"
18-
"github.com/TannerKvarfordt/gopenai/files"
19-
"github.com/TannerKvarfordt/gopenai/models"
17+
"github.com/Kardbord/gopenai/common"
18+
"github.com/Kardbord/gopenai/files"
19+
"github.com/Kardbord/gopenai/models"
2020
)
2121

2222
const Endpoint = common.BaseURL + "fine-tunes"

finetunes/finetunes_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"os"
55
"testing"
66

7-
"github.com/TannerKvarfordt/gopenai/authentication"
8-
"github.com/TannerKvarfordt/gopenai/finetunes"
7+
"github.com/Kardbord/gopenai/authentication"
8+
"github.com/Kardbord/gopenai/finetunes"
99
_ "github.com/joho/godotenv/autoload"
1010
)
1111

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/TannerKvarfordt/gopenai
1+
module github.com/Kardbord/gopenai
22

33
go 1.19
44

images/images.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"mime/multipart"
1414
"net/http"
1515

16-
"github.com/TannerKvarfordt/gopenai/common"
17-
"github.com/TannerKvarfordt/gopenai/moderations"
16+
"github.com/Kardbord/gopenai/common"
17+
"github.com/Kardbord/gopenai/moderations"
1818
)
1919

2020
const (

0 commit comments

Comments
 (0)