Skip to content

Commit 592876e

Browse files
authored
Merge pull request #2 from openshieldai/run
streaming support for runs
2 parents f2c8dec + 83d7272 commit 592876e

Some content is hidden

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

50 files changed

+114
-114
lines changed

.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/openshieldai/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/openshieldai/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/openshieldai/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/openshieldai/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/openshieldai/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/openshieldai/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/openshieldai/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/openshieldai/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/openshieldai/go-openai/pulls) before creating one.
2020

2121
### Requirements for Merging a Pull Request
2222

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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)
2+
[![Go Reference](https://pkg.go.dev/badge/github.com/openshieldai/go-openai.svg)](https://pkg.go.dev/github.com/openshieldai/go-openai)
3+
[![Go Report Card](https://goreportcard.com/badge/github.com/openshieldai/go-openai)](https://goreportcard.com/report/github.com/openshieldai/go-openai)
44
[![codecov](https://codecov.io/gh/sashabaranov/go-openai/branch/master/graph/badge.svg?token=bCbIfHLIsW)](https://codecov.io/gh/sashabaranov/go-openai)
55

66
This library provides unofficial Go clients for [OpenAI API](https://platform.openai.com/). We support:
@@ -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/openshieldai/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/openshieldai/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/openshieldai/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/openshieldai/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/openshieldai/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/openshieldai/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/openshieldai/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/openshieldai/go-openai"
292292
"image/png"
293293
"os"
294294
)
@@ -376,7 +376,7 @@ config.HTTPClient = &http.Client{
376376
c := openai.NewClientWithConfig(config)
377377
```
378378

379-
See also: https://pkg.go.dev/github.com/sashabaranov/go-openai#ClientConfig
379+
See also: https://pkg.go.dev/github.com/openshieldai/go-openai#ClientConfig
380380
</details>
381381

382382
<details>
@@ -392,7 +392,7 @@ import (
392392
"os"
393393
"strings"
394394

395-
"github.com/sashabaranov/go-openai"
395+
"github.com/openshieldai/go-openai"
396396
)
397397

398398
func main() {
@@ -446,7 +446,7 @@ import (
446446
"context"
447447
"fmt"
448448

449-
openai "github.com/sashabaranov/go-openai"
449+
openai "github.com/openshieldai/go-openai"
450450
)
451451

452452
func main() {
@@ -492,7 +492,7 @@ package main
492492
import (
493493
"context"
494494
"log"
495-
openai "github.com/sashabaranov/go-openai"
495+
openai "github.com/openshieldai/go-openai"
496496

497497
)
498498

@@ -549,7 +549,7 @@ import (
549549
"context"
550550
"fmt"
551551

552-
openai "github.com/sashabaranov/go-openai"
552+
openai "github.com/openshieldai/go-openai"
553553
)
554554

555555
func main() {
@@ -680,7 +680,7 @@ package main
680680
import (
681681
"context"
682682
"fmt"
683-
"github.com/sashabaranov/go-openai"
683+
"github.com/openshieldai/go-openai"
684684
)
685685

686686
func main() {
@@ -755,8 +755,8 @@ import (
755755
"fmt"
756756
"log"
757757

758-
"github.com/sashabaranov/go-openai"
759-
"github.com/sashabaranov/go-openai/jsonschema"
758+
"github.com/openshieldai/go-openai"
759+
"github.com/openshieldai/go-openai/jsonschema"
760760
)
761761

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

830830
**Related Issues:**
831-
[omitempty option of request struct will generate incorrect request when parameter is 0.](https://github.com/sashabaranov/go-openai/issues/9)
831+
[omitempty option of request struct will generate incorrect request when parameter is 0.](https://github.com/openshieldai/go-openai/issues/9)
832832

833833
### Does Go OpenAI provide a method to count tokens?
834834

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

841841
**Related Issues:**
842-
[Is it possible to join the implementation of GPT3 Tokenizer](https://github.com/sashabaranov/go-openai/issues/62)
842+
[Is it possible to join the implementation of GPT3 Tokenizer](https://github.com/openshieldai/go-openai/issues/62)
843843

844844
## Contributing
845845

846-
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.
846+
By following [Contributing Guidelines](https://github.com/openshieldai/go-openai/blob/master/CONTRIBUTING.md), we hope to ensure that your contributions are made smoothly and efficiently.
847847

848848
## Thank you
849849

850-
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:
850+
We want to take a moment to express our deepest gratitude to the [contributors](https://github.com/openshieldai/go-openai/graphs/contributors) and sponsors of this project:
851851
- [Carson Kahn](https://carsonkahn.com) of [Spindle AI](https://spindleai.com)
852852

853853
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/openshieldai/go-openai"
14+
"github.com/openshieldai/go-openai/internal/test/checks"
15+
"github.com/openshieldai/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/openshieldai/go-openai"
7+
"github.com/openshieldai/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/openshieldai/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/openshieldai/go-openai"
16+
"github.com/openshieldai/go-openai/internal/test"
17+
"github.com/openshieldai/go-openai/internal/test/checks"
1818
)
1919

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

audio_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"path/filepath"
99
"testing"
1010

11-
"github.com/sashabaranov/go-openai/internal/test"
12-
"github.com/sashabaranov/go-openai/internal/test/checks"
11+
"github.com/openshieldai/go-openai/internal/test"
12+
"github.com/openshieldai/go-openai/internal/test/checks"
1313
)
1414

1515
func TestAudioWithFailingFormBuilder(t *testing.T) {

0 commit comments

Comments
 (0)