diff options
Diffstat (limited to 'bin/gpt')
-rwxr-xr-x | bin/gpt/gpt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/gpt/gpt b/bin/gpt/gpt index aa770bb..4288851 100755 --- a/bin/gpt/gpt +++ b/bin/gpt/gpt | |||
@@ -338,6 +338,7 @@ EOF | |||
338 | _API_call | _process_completion | 338 | _API_call | _process_completion |
339 | echo -e '\e[0m\n' | 339 | echo -e '\e[0m\n' |
340 | 340 | ||
341 | # Print token use for each chat (if --verbose is set) | ||
341 | if [ "$VERBOSE" = true ]; then | 342 | if [ "$VERBOSE" = true ]; then |
342 | tokens=$(jq -s '.[-1].usage? // empty | .total_tokens' "$cache") | 343 | tokens=$(jq -s '.[-1].usage? // empty | .total_tokens' "$cache") |
343 | echo -e "$tokens token used.\n" | 344 | echo -e "$tokens token used.\n" |