Skip to content

Commit 3adfd25

Browse files
committed
Formatting
1 parent 3c34ca0 commit 3adfd25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openai-examples/src/main/scala/io/cequence/openaiscala/examples/CreateChatCompletionWithLogprobs.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ object CreateChatCompletionWithLogprobs extends Example {
2828
printMessageContent(response)
2929
val logprobs = response.choices.head.logprobs.map(_.content).getOrElse(Nil)
3030
logprobs.foreach { logprob =>
31-
println(s"Logprob: ${logprob.token} -> ${logprob.logprob}, top: ${logprob.top_logprobs.map(_.token).mkString(", ")}")
31+
println(
32+
s"Logprob: ${logprob.token} -> ${logprob.logprob}, top: ${logprob.top_logprobs.map(_.token).mkString(", ")}"
33+
)
3234
}
3335
}
3436
}

0 commit comments

Comments
 (0)