Skip to content

Commit

Permalink
reverting
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsbatista committed Aug 19, 2024
1 parent 91297c6 commit 70191ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def run(
if "output_tokens" in response.meta["usage"]:
response.meta["usage"]["completion_tokens"] = response.meta["usage"].pop("output_tokens")
else:
response.meta["usage"] = {}
if "prompt_token_count" in response.meta:
response.meta["usage"] = {}
response.meta["usage"]["prompt_tokens"] = response.meta.pop("prompt_token_count")
if "generation_token_count" in response.meta:
response.meta["usage"]["completion_tokens"] = response.meta.pop("generation_token_count")
Expand Down

0 comments on commit 70191ff

Please sign in to comment.