Skip to content

Commit

Permalink
Update UsageManager.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
acharneski committed Mar 29, 2024
1 parent d4218ad commit 3bffbec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ open class UsageManager(val root: File) : UsageInterface {
synchronized(txLogFile) {
txLogFileWriter.write("$session,${apiKey},${model.modelName},${tokens.prompt_tokens},input\n")
txLogFileWriter.write("$session,${apiKey},${model.modelName},${tokens.completion_tokens},output\n")
txLogFileWriter.write("$session,${apiKey},${model.modelName},${tokens.completion_tokens},cost\n")
txLogFileWriter.write("$session,${apiKey},${model.modelName},${tokens.cost},cost\n")
txLogFileWriter.flush()
}
}
Expand Down

0 comments on commit 3bffbec

Please sign in to comment.