File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
sdk/openai/Azure.AI.OpenAI/tests Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -953,4 +953,21 @@ private static void AssertSerializationRoundTrip<T>(
953
953
}
954
954
""" ) ,
955
955
false ) ;
956
+
957
+ [ RecordedTest ]
958
+ [ TestCase ( Gpt4oMiniDeployment ) ]
959
+ public void ChatbotTellsJokes ( string deploymentName )
960
+ {
961
+ OpenAIResponseClient client = GetResponseTestClientForDeployment ( deploymentName ) ;
962
+
963
+ OpenAIResponse response = client . CreateResponse (
964
+ inputItems : [
965
+ ResponseItem . CreateSystemMessageItem ( "You are a humorous assistant who tells jokes" ) ,
966
+ ResponseItem . CreateUserMessageItem ( "Please tell me 3 jokes about trains" )
967
+ ] ) ;
968
+
969
+ string output = ( ( MessageResponseItem ) response . OutputItems [ 0 ] ) . Content [ 0 ] . Text ;
970
+
971
+ Assert . That ( output , Is . Not . Null . And . Not . Empty ) ;
972
+ }
956
973
}
You can’t perform that action at this time.
0 commit comments