Skip to content

Commit f793e8b

Browse files
committed
style: remove duplicate import (#429)(#432)
1 parent f2b5569 commit f793e8b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

api_integration_test.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"os"
1010
"testing"
1111

12-
"github.com/sashabaranov/go-openai"
1312
. "github.com/sashabaranov/go-openai"
1413
"github.com/sashabaranov/go-openai/internal/test/checks"
1514
"github.com/sashabaranov/go-openai/jsonschema"
@@ -105,15 +104,15 @@ func TestAPI(t *testing.T) {
105104

106105
_, err = c.CreateChatCompletion(
107106
context.Background(),
108-
openai.ChatCompletionRequest{
109-
Model: openai.GPT3Dot5Turbo,
110-
Messages: []openai.ChatCompletionMessage{
107+
ChatCompletionRequest{
108+
Model: GPT3Dot5Turbo,
109+
Messages: []ChatCompletionMessage{
111110
{
112-
Role: openai.ChatMessageRoleUser,
111+
Role: ChatMessageRoleUser,
113112
Content: "What is the weather like in Boston?",
114113
},
115114
},
116-
Functions: []openai.FunctionDefinition{{
115+
Functions: []FunctionDefinition{{
117116
Name: "get_current_weather",
118117
Parameters: jsonschema.Definition{
119118
Type: jsonschema.Object,

0 commit comments

Comments
 (0)