Skip to content

Commit

Permalink
style: remove duplicate import (#429)(#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvatanabe committed Jul 11, 2023
1 parent f2b5569 commit f793e8b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions api_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"os"
"testing"

"github.com/sashabaranov/go-openai"
. "github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/internal/test/checks"
"github.com/sashabaranov/go-openai/jsonschema"
Expand Down Expand Up @@ -105,15 +104,15 @@ func TestAPI(t *testing.T) {

_, err = c.CreateChatCompletion(
context.Background(),
openai.ChatCompletionRequest{
Model: openai.GPT3Dot5Turbo,
Messages: []openai.ChatCompletionMessage{
ChatCompletionRequest{
Model: GPT3Dot5Turbo,
Messages: []ChatCompletionMessage{
{
Role: openai.ChatMessageRoleUser,
Role: ChatMessageRoleUser,
Content: "What is the weather like in Boston?",
},
},
Functions: []openai.FunctionDefinition{{
Functions: []FunctionDefinition{{
Name: "get_current_weather",
Parameters: jsonschema.Definition{
Type: jsonschema.Object,
Expand Down

0 comments on commit f793e8b

Please sign in to comment.