This commit is contained in:
Christian Tzolov
2024-01-14 20:46:50 +01:00
parent 7262afb14d
commit abbd911f69

View File

@@ -117,7 +117,7 @@ public class OpenAiChatClientWithGenerationMetadataTests {
response.getGenerations().forEach(generation -> {
ChoiceMetadata choiceMetadata = generation.getChoiceMetadata();
assertThat(choiceMetadata).isNotNull();
assertThat(choiceMetadata.getFinishReason()).isEqualTo("stop");
assertThat(choiceMetadata.getFinishReason()).isEqualTo("STOP");
assertThat(choiceMetadata.<Object>getContentFilterMetadata()).isNull();
});
}