File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 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 ,
You can’t perform that action at this time.
0 commit comments