File tree 1 file changed +14
-0
lines changed
service/src/test/java/com/theokanning/openai/service
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -957,4 +957,18 @@ void toolCallingStrictTest(){
957
957
assertEquals ("asc" ,arguments .get ("order_by" ).asText ());
958
958
}
959
959
960
+ @ Test
961
+ void o1ModelTest (){
962
+ ChatCompletionRequest chatCompletionRequest = ChatCompletionRequest .builder ()
963
+ .model ("o1-mini" )
964
+ .messages (Arrays .asList (new UserMessage ("9.11和9.8比较,那个大" )))
965
+ .build ();
966
+ ChatCompletionResult chatCompletion = service .createChatCompletion (chatCompletionRequest );
967
+ assertNotNull (chatCompletion );
968
+ assertNotNull (chatCompletion .getChoices ());
969
+ ChatCompletionChoice choice = chatCompletion .getChoices ().get (0 );
970
+ assertNotNull (choice );
971
+ assertNotNull (choice .getMessage ());
972
+ assertNotNull (choice .getMessage ().getContent ());
973
+ }
960
974
}
You can’t perform that action at this time.
0 commit comments