From 9c99f3626f1d80382e187df8adc38f7e8e929a75 Mon Sep 17 00:00:00 2001 From: ryomak <21288308+ryomak@users.noreply.github.com> Date: Thu, 29 Jun 2023 09:41:22 +0900 Subject: [PATCH] replace deprecated FunctionDefine in chat_test.go (#416) --- chat_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chat_test.go b/chat_test.go index d5879e6..5723d6c 100644 --- a/chat_test.go +++ b/chat_test.go @@ -85,7 +85,7 @@ func TestChatCompletionsFunctions(t *testing.T) { Content: "Hello!", }, }, - Functions: []FunctionDefine{{ + Functions: []FunctionDefinition{{ Name: "test", Parameters: &msg, }}, @@ -117,7 +117,7 @@ func TestChatCompletionsFunctions(t *testing.T) { }) checks.NoError(t, err, "CreateChatCompletion with functions error") }) - t.Run("JSONSchemaDefine", func(t *testing.T) { + t.Run("JSONSchemaDefinition", func(t *testing.T) { _, err := client.CreateChatCompletion(context.Background(), ChatCompletionRequest{ MaxTokens: 5, Model: GPT3Dot5Turbo0613, @@ -153,7 +153,7 @@ func TestChatCompletionsFunctions(t *testing.T) { }) checks.NoError(t, err, "CreateChatCompletion with functions error") }) - t.Run("JSONSchemaDefineWithFunctionDefine", func(t *testing.T) { + t.Run("JSONSchemaDefinitionWithFunctionDefine", func(t *testing.T) { // this is a compatibility check _, err := client.CreateChatCompletion(context.Background(), ChatCompletionRequest{ MaxTokens: 5,