Skip to content

Commit ef513b1

Browse files
committed
2 parents 181c0e8 + 06d6c2b commit ef513b1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+153
-105
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These are supported funding model platforms
22

3-
github: [sashabaranov, vvatanabe]
3+
github: [lookfirst-io, vvatanabe]

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ assignees: ''
88
---
99

1010
Your issue may already be reported!
11-
Please search on the [issue tracker](https://github.com/sashabaranov/go-openai/issues) before creating one.
11+
Please search on the [issue tracker](https://github.com/lookfirst-io/go-openai/issues) before creating one.
1212

1313
**Describe the bug**
1414
A clear and concise description of what the bug is. If it's an API-related bug, please provide relevant endpoint(s).

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ assignees: ''
88
---
99

1010
Your issue may already be reported!
11-
Please search on the [issue tracker](https://github.com/sashabaranov/go-openai/issues) before creating one.
11+
Please search on the [issue tracker](https://github.com/lookfirst-io/go-openai/issues) before creating one.
1212

1313
**Is your feature request related to a problem? Please describe.**
1414
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
A similar PR may already be submitted!
2-
Please search among the [Pull request](https://github.com/sashabaranov/go-openai/pulls) before creating one.
2+
Please search among the [Pull request](https://github.com/lookfirst-io/go-openai/pulls) before creating one.
33

44
If your changes introduce breaking changes, please prefix the title of your pull request with "[BREAKING_CHANGES]". This allows for clear identification of such changes in the 'What's Changed' section on the release page, making it developer-friendly.
55

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# Contributing Guidelines
22

33
## Overview
4-
Thank you for your interest in contributing to the "Go OpenAI" project! By following this guideline, we hope to ensure that your contributions are made smoothly and efficiently. The Go OpenAI project is licensed under the [Apache 2.0 License](https://github.com/sashabaranov/go-openai/blob/master/LICENSE), and we welcome contributions through GitHub pull requests.
4+
Thank you for your interest in contributing to the "Go OpenAI" project! By following this guideline, we hope to ensure that your contributions are made smoothly and efficiently. The Go OpenAI project is licensed under the [Apache 2.0 License](https://github.com/lookfirst-io/go-openai/blob/master/LICENSE), and we welcome contributions through GitHub pull requests.
55

66
## Reporting Bugs
7-
If you discover a bug, first check the [GitHub Issues page](https://github.com/sashabaranov/go-openai/issues) to see if the issue has already been reported. If you're reporting a new issue, please use the "Bug report" template and provide detailed information about the problem, including steps to reproduce it.
7+
If you discover a bug, first check the [GitHub Issues page](https://github.com/lookfirst-io/go-openai/issues) to see if the issue has already been reported. If you're reporting a new issue, please use the "Bug report" template and provide detailed information about the problem, including steps to reproduce it.
88

99
## Suggesting Features
10-
If you want to suggest a new feature or improvement, first check the [GitHub Issues page](https://github.com/sashabaranov/go-openai/issues) to ensure a similar suggestion hasn't already been made. Use the "Feature request" template to provide a detailed description of your suggestion.
10+
If you want to suggest a new feature or improvement, first check the [GitHub Issues page](https://github.com/lookfirst-io/go-openai/issues) to ensure a similar suggestion hasn't already been made. Use the "Feature request" template to provide a detailed description of your suggestion.
1111

1212
## Reporting Vulnerabilities
13-
If you identify a security concern, please use the "Report a security vulnerability" template on the [GitHub Issues page](https://github.com/sashabaranov/go-openai/issues) to share the details. This report will only be viewable to repository maintainers. You will be credited if the advisory is published.
13+
If you identify a security concern, please use the "Report a security vulnerability" template on the [GitHub Issues page](https://github.com/lookfirst-io/go-openai/issues) to share the details. This report will only be viewable to repository maintainers. You will be credited if the advisory is published.
1414

1515
## Questions for Users
16-
If you have questions, please utilize [StackOverflow](https://stackoverflow.com/) or the [GitHub Discussions page](https://github.com/sashabaranov/go-openai/discussions).
16+
If you have questions, please utilize [StackOverflow](https://stackoverflow.com/) or the [GitHub Discussions page](https://github.com/lookfirst-io/go-openai/discussions).
1717

1818
## Contributing Code
19-
There might already be a similar pull requests submitted! Please search for [pull requests](https://github.com/sashabaranov/go-openai/pulls) before creating one.
19+
There might already be a similar pull requests submitted! Please search for [pull requests](https://github.com/lookfirst-io/go-openai/pulls) before creating one.
2020

2121
### Requirements for Merging a Pull Request
2222

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Go OpenAI
2-
[![Go Reference](https://pkg.go.dev/badge/github.com/sashabaranov/go-openai.svg)](https://pkg.go.dev/github.com/sashabaranov/go-openai)
3-
[![Go Report Card](https://goreportcard.com/badge/github.com/sashabaranov/go-openai)](https://goreportcard.com/report/github.com/sashabaranov/go-openai)
4-
[![codecov](https://codecov.io/gh/sashabaranov/go-openai/branch/master/graph/badge.svg?token=bCbIfHLIsW)](https://codecov.io/gh/sashabaranov/go-openai)
2+
[![Go Reference](https://pkg.go.dev/badge/github.com/lookfirst-io/go-openai.svg)](https://pkg.go.dev/github.com/lookfirst-io/go-openai)
3+
[![Go Report Card](https://goreportcard.com/badge/github.com/lookfirst-io/go-openai)](https://goreportcard.com/report/github.com/lookfirst-io/go-openai)
4+
[![codecov](https://codecov.io/gh/lookfirst-io/go-openai/branch/master/graph/badge.svg?token=bCbIfHLIsW)](https://codecov.io/gh/lookfirst-io/go-openai)
55

66
This library provides unofficial Go clients for [OpenAI API](https://platform.openai.com/). We support:
77

@@ -13,7 +13,7 @@ This library provides unofficial Go clients for [OpenAI API](https://platform.op
1313
## Installation
1414

1515
```
16-
go get github.com/sashabaranov/go-openai
16+
go get github.com/lookfirst-io/go-openai
1717
```
1818
Currently, go-openai requires Go version 1.18 or greater.
1919

@@ -28,7 +28,7 @@ package main
2828
import (
2929
"context"
3030
"fmt"
31-
openai "github.com/sashabaranov/go-openai"
31+
openai "github.com/lookfirst-io/go-openai"
3232
)
3333

3434
func main() {
@@ -80,7 +80,7 @@ import (
8080
"errors"
8181
"fmt"
8282
"io"
83-
openai "github.com/sashabaranov/go-openai"
83+
openai "github.com/lookfirst-io/go-openai"
8484
)
8585

8686
func main() {
@@ -133,7 +133,7 @@ package main
133133
import (
134134
"context"
135135
"fmt"
136-
openai "github.com/sashabaranov/go-openai"
136+
openai "github.com/lookfirst-io/go-openai"
137137
)
138138

139139
func main() {
@@ -166,7 +166,7 @@ import (
166166
"context"
167167
"fmt"
168168
"io"
169-
openai "github.com/sashabaranov/go-openai"
169+
openai "github.com/lookfirst-io/go-openai"
170170
)
171171

172172
func main() {
@@ -215,7 +215,7 @@ import (
215215
"context"
216216
"fmt"
217217

218-
openai "github.com/sashabaranov/go-openai"
218+
openai "github.com/lookfirst-io/go-openai"
219219
)
220220

221221
func main() {
@@ -247,7 +247,7 @@ import (
247247
"fmt"
248248
"os"
249249

250-
openai "github.com/sashabaranov/go-openai"
250+
openai "github.com/lookfirst-io/go-openai"
251251
)
252252

253253
func main() {
@@ -288,7 +288,7 @@ import (
288288
"context"
289289
"encoding/base64"
290290
"fmt"
291-
openai "github.com/sashabaranov/go-openai"
291+
openai "github.com/lookfirst-io/go-openai"
292292
"image/png"
293293
"os"
294294
)
@@ -436,7 +436,7 @@ config.HTTPClient = &http.Client{
436436
c := openai.NewClientWithConfig(config)
437437
```
438438

439-
See also: https://pkg.go.dev/github.com/sashabaranov/go-openai#ClientConfig
439+
See also: https://pkg.go.dev/github.com/lookfirst-io/go-openai#ClientConfig
440440
</details>
441441

442442
<details>
@@ -452,7 +452,7 @@ import (
452452
"os"
453453
"strings"
454454

455-
"github.com/sashabaranov/go-openai"
455+
"github.com/lookfirst-io/go-openai"
456456
)
457457

458458
func main() {
@@ -506,7 +506,7 @@ import (
506506
"context"
507507
"fmt"
508508

509-
openai "github.com/sashabaranov/go-openai"
509+
openai "github.com/lookfirst-io/go-openai"
510510
)
511511

512512
func main() {
@@ -552,7 +552,7 @@ package main
552552
import (
553553
"context"
554554
"log"
555-
openai "github.com/sashabaranov/go-openai"
555+
openai "github.com/lookfirst-io/go-openai"
556556

557557
)
558558

@@ -609,7 +609,7 @@ import (
609609
"context"
610610
"fmt"
611611

612-
openai "github.com/sashabaranov/go-openai"
612+
openai "github.com/lookfirst-io/go-openai"
613613
)
614614

615615
func main() {
@@ -740,7 +740,7 @@ package main
740740
import (
741741
"context"
742742
"fmt"
743-
"github.com/sashabaranov/go-openai"
743+
"github.com/lookfirst-io/go-openai"
744744
)
745745

746746
func main() {
@@ -888,7 +888,7 @@ Due to the factors mentioned above, different answers may be returned even for t
888888
By adopting these strategies, you can expect more consistent results.
889889

890890
**Related Issues:**
891-
[omitempty option of request struct will generate incorrect request when parameter is 0.](https://github.com/sashabaranov/go-openai/issues/9)
891+
[omitempty option of request struct will generate incorrect request when parameter is 0.](https://github.com/lookfirst-io/go-openai/issues/9)
892892

893893
### Does Go OpenAI provide a method to count tokens?
894894

@@ -899,15 +899,15 @@ For counting tokens, you might find the following links helpful:
899899
- [How to count tokens with tiktoken](https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb)
900900

901901
**Related Issues:**
902-
[Is it possible to join the implementation of GPT3 Tokenizer](https://github.com/sashabaranov/go-openai/issues/62)
902+
[Is it possible to join the implementation of GPT3 Tokenizer](https://github.com/lookfirst-io/go-openai/issues/62)
903903

904904
## Contributing
905905

906-
By following [Contributing Guidelines](https://github.com/sashabaranov/go-openai/blob/master/CONTRIBUTING.md), we hope to ensure that your contributions are made smoothly and efficiently.
906+
By following [Contributing Guidelines](https://github.com/lookfirst-io/go-openai/blob/master/CONTRIBUTING.md), we hope to ensure that your contributions are made smoothly and efficiently.
907907

908908
## Thank you
909909

910-
We want to take a moment to express our deepest gratitude to the [contributors](https://github.com/sashabaranov/go-openai/graphs/contributors) and sponsors of this project:
910+
We want to take a moment to express our deepest gratitude to the [contributors](https://github.com/lookfirst-io/go-openai/graphs/contributors) and sponsors of this project:
911911
- [Carson Kahn](https://carsonkahn.com) of [Spindle AI](https://spindleai.com)
912912

913913
To all of you: thank you. You've helped us achieve more than we ever imagined possible. Can't wait to see where we go next, together!

api_integration_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"os"
1111
"testing"
1212

13-
"github.com/sashabaranov/go-openai"
14-
"github.com/sashabaranov/go-openai/internal/test/checks"
15-
"github.com/sashabaranov/go-openai/jsonschema"
13+
"github.com/lookfirst-io/go-openai"
14+
"github.com/lookfirst-io/go-openai/internal/test/checks"
15+
"github.com/lookfirst-io/go-openai/jsonschema"
1616
)
1717

1818
func TestAPI(t *testing.T) {

assistant_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package openai_test
33
import (
44
"context"
55

6-
openai "github.com/sashabaranov/go-openai"
7-
"github.com/sashabaranov/go-openai/internal/test/checks"
6+
openai "github.com/lookfirst-io/go-openai"
7+
"github.com/lookfirst-io/go-openai/internal/test/checks"
88

99
"encoding/json"
1010
"fmt"

audio.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"net/http"
99
"os"
1010

11-
utils "github.com/sashabaranov/go-openai/internal"
11+
utils "github.com/lookfirst-io/go-openai/internal"
1212
)
1313

1414
// Whisper Defines the models provided by OpenAI to use when processing audio with OpenAI.

audio_api_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import (
1212
"strings"
1313
"testing"
1414

15-
"github.com/sashabaranov/go-openai"
16-
"github.com/sashabaranov/go-openai/internal/test"
17-
"github.com/sashabaranov/go-openai/internal/test/checks"
15+
"github.com/lookfirst-io/go-openai"
16+
"github.com/lookfirst-io/go-openai/internal/test"
17+
"github.com/lookfirst-io/go-openai/internal/test/checks"
1818
)
1919

2020
// TestAudio Tests the transcription and translation endpoints of the API using the mocked server.

0 commit comments

Comments
 (0)