File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
openai-java-core/src/test/kotlin/com/openai Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -162,5 +162,9 @@ internal class ResponseAccumulatorTest {
162162 .build()
163163
164164 private fun responseOutputText () =
165- ResponseOutputText .builder().text(" Hello World" ).annotations(listOf ()).build()
165+ ResponseOutputText .builder()
166+ .text(" Hello World" )
167+ .annotations(listOf ())
168+ .logprobs(listOf ())
169+ .build()
166170}
Original file line number Diff line number Diff line change @@ -39,7 +39,11 @@ internal class StructuredResponseOutputMessageTest {
3939 companion object {
4040 private val MESSAGE_STATUS = ResponseOutputMessage .Status .COMPLETED
4141 private val OUTPUT_TEXT =
42- ResponseOutputText .builder().annotations(listOf ()).text(STRING ).build()
42+ ResponseOutputText .builder()
43+ .annotations(listOf ())
44+ .logprobs(listOf<ResponseOutputText .Logprob >())
45+ .text(STRING )
46+ .build()
4347 private val OUTPUT_REFUSAL = ResponseOutputRefusal .builder().refusal(STRING ).build()
4448 private val CONTENT = ResponseOutputMessage .Content .ofOutputText(OUTPUT_TEXT )
4549
@@ -218,6 +222,7 @@ internal class StructuredResponseOutputMessageTest {
218222 Optional .of(
219223 ResponseOutputText .builder()
220224 .annotations(listOf ())
225+ .logprobs(listOf<ResponseOutputText .Logprob >())
221226 .text(" {\" s\" : \" hello\" }" )
222227 .build()
223228 )
@@ -240,6 +245,7 @@ internal class StructuredResponseOutputMessageTest {
240245 Optional .of(
241246 ResponseOutputText .builder()
242247 .annotations(listOf ())
248+ .logprobs(listOf<ResponseOutputText .Logprob >())
243249 .text(" {\" s\" : \" hello\" }" )
244250 .build()
245251 )
You can’t perform that action at this time.
0 commit comments