Skip to content

Commit 9c99f36

Browse files
authored
replace deprecated FunctionDefine in chat_test.go (sashabaranov#416)
1 parent 86d0f48 commit 9c99f36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chat_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func TestChatCompletionsFunctions(t *testing.T) {
8585
Content: "Hello!",
8686
},
8787
},
88-
Functions: []FunctionDefine{{
88+
Functions: []FunctionDefinition{{
8989
Name: "test",
9090
Parameters: &msg,
9191
}},
@@ -117,7 +117,7 @@ func TestChatCompletionsFunctions(t *testing.T) {
117117
})
118118
checks.NoError(t, err, "CreateChatCompletion with functions error")
119119
})
120-
t.Run("JSONSchemaDefine", func(t *testing.T) {
120+
t.Run("JSONSchemaDefinition", func(t *testing.T) {
121121
_, err := client.CreateChatCompletion(context.Background(), ChatCompletionRequest{
122122
MaxTokens: 5,
123123
Model: GPT3Dot5Turbo0613,
@@ -153,7 +153,7 @@ func TestChatCompletionsFunctions(t *testing.T) {
153153
})
154154
checks.NoError(t, err, "CreateChatCompletion with functions error")
155155
})
156-
t.Run("JSONSchemaDefineWithFunctionDefine", func(t *testing.T) {
156+
t.Run("JSONSchemaDefinitionWithFunctionDefine", func(t *testing.T) {
157157
// this is a compatibility check
158158
_, err := client.CreateChatCompletion(context.Background(), ChatCompletionRequest{
159159
MaxTokens: 5,

0 commit comments

Comments
 (0)