Skip to content

Commit be2a606

Browse files
committed
feat: 修改module名称
1 parent ce3c97a commit be2a606

Some content is hidden

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

45 files changed

+82
-82
lines changed

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/lantiancai/go-openai"
14+
"github.com/lantiancai/go-openai/internal/test/checks"
15+
"github.com/lantiancai/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/lantiancai/go-openai"
7+
"github.com/lantiancai/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/lantiancai/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/lantiancai/go-openai"
16+
"github.com/lantiancai/go-openai/internal/test"
17+
"github.com/lantiancai/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/lantiancai/go-openai/internal/test"
12+
"github.com/lantiancai/go-openai/internal/test/checks"
1313
)
1414

1515
func TestAudioWithFailingFormBuilder(t *testing.T) {

batch_test.go

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

10-
"github.com/sashabaranov/go-openai"
11-
"github.com/sashabaranov/go-openai/internal/test/checks"
10+
"github.com/lantiancai/go-openai"
11+
"github.com/lantiancai/go-openai/internal/test/checks"
1212
)
1313

1414
func TestUploadBatchFile(t *testing.T) {

chat_stream_test.go

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

13-
"github.com/sashabaranov/go-openai"
14-
"github.com/sashabaranov/go-openai/internal/test/checks"
13+
"github.com/lantiancai/go-openai"
14+
"github.com/lantiancai/go-openai/internal/test/checks"
1515
)
1616

1717
func TestChatCompletionsStreamWrongModel(t *testing.T) {

chat_test.go

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

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

2020
const (

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"net/url"
1111
"strings"
1212

13-
utils "github.com/sashabaranov/go-openai/internal"
13+
utils "github.com/lantiancai/go-openai/internal"
1414
)
1515

1616
// Client is OpenAI GPT-3 API client.

client_test.go

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

13-
"github.com/sashabaranov/go-openai/internal/test"
14-
"github.com/sashabaranov/go-openai/internal/test/checks"
13+
"github.com/lantiancai/go-openai/internal/test"
14+
"github.com/lantiancai/go-openai/internal/test/checks"
1515
)
1616

1717
var errTestRequestBuilderFailed = errors.New("test request builder failed")

completion_test.go

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

15-
"github.com/sashabaranov/go-openai"
16-
"github.com/sashabaranov/go-openai/internal/test/checks"
15+
"github.com/lantiancai/go-openai"
16+
"github.com/lantiancai/go-openai/internal/test/checks"
1717
)
1818

1919
func TestCompletionsWrongModel(t *testing.T) {

config_test.go

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

6-
"github.com/sashabaranov/go-openai"
6+
"github.com/lantiancai/go-openai"
77
)
88

99
func TestGetAzureDeploymentByModel(t *testing.T) {

edits_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"testing"
1010
"time"
1111

12-
"github.com/sashabaranov/go-openai"
13-
"github.com/sashabaranov/go-openai/internal/test/checks"
12+
"github.com/lantiancai/go-openai"
13+
"github.com/lantiancai/go-openai/internal/test/checks"
1414
)
1515

1616
// TestEdits Tests the edits endpoint of the API using the mocked server.

embeddings_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"reflect"
1212
"testing"
1313

14-
"github.com/sashabaranov/go-openai"
15-
"github.com/sashabaranov/go-openai/internal/test/checks"
14+
"github.com/lantiancai/go-openai"
15+
"github.com/lantiancai/go-openai/internal/test/checks"
1616
)
1717

1818
func TestEmbedding(t *testing.T) {

engines_test.go

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

10-
"github.com/sashabaranov/go-openai"
11-
"github.com/sashabaranov/go-openai/internal/test/checks"
10+
"github.com/lantiancai/go-openai"
11+
"github.com/lantiancai/go-openai/internal/test/checks"
1212
)
1313

1414
// TestGetEngine Tests the retrieve engine endpoint of the API using the mocked server.

error.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (e *APIError) UnmarshalJSON(data []byte) (err error) {
5454
err = json.Unmarshal(rawMap["message"], &e.Message)
5555
if err != nil {
5656
// If the parameter field of a function call is invalid as a JSON schema
57-
// refs: https://github.com/sashabaranov/go-openai/issues/381
57+
// refs: https://github.com/lantiancai/go-openai/issues/381
5858
var messages []string
5959
err = json.Unmarshal(rawMap["message"], &messages)
6060
if err != nil {
@@ -64,7 +64,7 @@ func (e *APIError) UnmarshalJSON(data []byte) (err error) {
6464
}
6565

6666
// optional fields for azure openai
67-
// refs: https://github.com/sashabaranov/go-openai/issues/343
67+
// refs: https://github.com/lantiancai/go-openai/issues/343
6868
if _, ok := rawMap["type"]; ok {
6969
err = json.Unmarshal(rawMap["type"], &e.Type)
7070
if err != nil {

error_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"reflect"
77
"testing"
88

9-
"github.com/sashabaranov/go-openai"
9+
"github.com/lantiancai/go-openai"
1010
)
1111

1212
func TestAPIErrorUnmarshalJSON(t *testing.T) {

example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"net/url"
1212
"os"
1313

14-
"github.com/sashabaranov/go-openai"
14+
"github.com/lantiancai/go-openai"
1515
)
1616

1717
func Example() {

examples/chatbot/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"os"
88

9-
"github.com/sashabaranov/go-openai"
9+
"github.com/lantiancai/go-openai"
1010
)
1111

1212
func main() {

examples/completion-with-tool/main.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/sashabaranov/go-openai"
9-
"github.com/sashabaranov/go-openai/jsonschema"
8+
"github.com/lantiancai/go-openai"
9+
"github.com/lantiancai/go-openai/jsonschema"
1010
)
1111

1212
func main() {

examples/completion/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"os"
77

8-
"github.com/sashabaranov/go-openai"
8+
"github.com/lantiancai/go-openai"
99
)
1010

1111
func main() {

examples/images/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"os"
77

8-
"github.com/sashabaranov/go-openai"
8+
"github.com/lantiancai/go-openai"
99
)
1010

1111
func main() {

examples/voice-to-text/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"os"
88

9-
"github.com/sashabaranov/go-openai"
9+
"github.com/lantiancai/go-openai"
1010
)
1111

1212
func main() {

files_api_test.go

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

15-
"github.com/sashabaranov/go-openai"
16-
"github.com/sashabaranov/go-openai/internal/test/checks"
15+
"github.com/lantiancai/go-openai"
16+
"github.com/lantiancai/go-openai/internal/test/checks"
1717
)
1818

1919
func TestFileBytesUpload(t *testing.T) {

files_test.go

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

10-
utils "github.com/sashabaranov/go-openai/internal"
11-
"github.com/sashabaranov/go-openai/internal/test/checks"
10+
utils "github.com/lantiancai/go-openai/internal"
11+
"github.com/lantiancai/go-openai/internal/test/checks"
1212
)
1313

1414
func TestFileBytesUploadWithFailingFormBuilder(t *testing.T) {

fine_tunes_test.go

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

10-
"github.com/sashabaranov/go-openai"
11-
"github.com/sashabaranov/go-openai/internal/test/checks"
10+
"github.com/lantiancai/go-openai"
11+
"github.com/lantiancai/go-openai/internal/test/checks"
1212
)
1313

1414
const testFineTuneID = "fine-tune-id"

fine_tuning_job_test.go

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

10-
"github.com/sashabaranov/go-openai"
11-
"github.com/sashabaranov/go-openai/internal/test/checks"
10+
"github.com/lantiancai/go-openai"
11+
"github.com/lantiancai/go-openai/internal/test/checks"
1212
)
1313

1414
const testFineTuninigJobID = "fine-tuning-job-id"

image_api_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"testing"
1212
"time"
1313

14-
"github.com/sashabaranov/go-openai"
15-
"github.com/sashabaranov/go-openai/internal/test/checks"
14+
"github.com/lantiancai/go-openai"
15+
"github.com/lantiancai/go-openai/internal/test/checks"
1616
)
1717

1818
func TestImages(t *testing.T) {

image_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package openai //nolint:testpackage // testing private field
22

33
import (
4-
utils "github.com/sashabaranov/go-openai/internal"
5-
"github.com/sashabaranov/go-openai/internal/test/checks"
4+
utils "github.com/lantiancai/go-openai/internal"
5+
"github.com/lantiancai/go-openai/internal/test/checks"
66

77
"context"
88
"fmt"

internal/error_accumulator_test.go

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

8-
utils "github.com/sashabaranov/go-openai/internal"
9-
"github.com/sashabaranov/go-openai/internal/test"
8+
utils "github.com/lantiancai/go-openai/internal"
9+
"github.com/lantiancai/go-openai/internal/test"
1010
)
1111

1212
func TestErrorAccumulatorBytes(t *testing.T) {

internal/form_builder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package openai //nolint:testpackage // testing private field
22

33
import (
4-
"github.com/sashabaranov/go-openai/internal/test/checks"
4+
"github.com/lantiancai/go-openai/internal/test/checks"
55

66
"bytes"
77
"errors"

internal/test/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package test
22

33
import (
4-
"github.com/sashabaranov/go-openai/internal/test/checks"
4+
"github.com/lantiancai/go-openai/internal/test/checks"
55

66
"net/http"
77
"os"

jsonschema/json_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"reflect"
66
"testing"
77

8-
"github.com/sashabaranov/go-openai/jsonschema"
8+
"github.com/lantiancai/go-openai/jsonschema"
99
)
1010

1111
func TestDefinition_MarshalJSON(t *testing.T) {

jsonschema/validate_test.go

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

6-
"github.com/sashabaranov/go-openai/jsonschema"
6+
"github.com/lantiancai/go-openai/jsonschema"
77
)
88

99
func Test_Validate(t *testing.T) {

messages_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"net/http"
88
"testing"
99

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

1515
var emptyStr = ""

models_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"testing"
1010
"time"
1111

12-
"github.com/sashabaranov/go-openai"
13-
"github.com/sashabaranov/go-openai/internal/test/checks"
12+
"github.com/lantiancai/go-openai"
13+
"github.com/lantiancai/go-openai/internal/test/checks"
1414
)
1515

1616
const testFineTuneModelID = "fine-tune-model-id"

moderation_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"testing"
1212
"time"
1313

14-
"github.com/sashabaranov/go-openai"
15-
"github.com/sashabaranov/go-openai/internal/test/checks"
14+
"github.com/lantiancai/go-openai"
15+
"github.com/lantiancai/go-openai/internal/test/checks"
1616
)
1717

1818
// TestModeration Tests the moderations endpoint of the API using the mocked server.

0 commit comments

Comments
 (0)