Skip to content

Commit 9aab9ec

Browse files
committed
formatting openai usage
1 parent 09ad413 commit 9aab9ec

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/resources/com/github/jlangch/venice/openai-java.venice

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,12 +1690,13 @@
16901690
["Audio" (:audio-tokens (:output-details usage))]
16911691
["Text" (:text-tokens (:output-details usage))] ]
16921692
input-details (format-usage-details in-details)
1693-
output-details (format-usage-details out-details)]
1693+
output-details (format-usage-details out-details)
1694+
title-formatted (if (nil? title) "" (str/format "%s%n" title))]
16941695
(str/format (str "%s"
16951696
"%sInput: %5d%s%n"
16961697
"%sOutput: %5d%s%n"
16971698
"%sTotal: %5d%n")
1698-
(if (nil? title) "" (str/format "%s%n" title))
1699+
title-formatted
16991700
indent (:input-tokens usage) input-details
17001701
indent (:output-tokens usage) output-details
17011702
indent (:total-tokens usage)))))

0 commit comments

Comments
 (0)