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