Skip to content

Commit e288f60

Browse files
committed
Fix bug
1 parent e20ad4a commit e288f60

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

llms_wrapper/llms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ def cost_callback(kwargs, completion_response, start_time, end_time):
957957
self.cost_logger.log(
958958
dict(
959959
model=llm["llm"], modelalias=llm["alias"],
960-
cost=ret["cost"], input_tokens=ret["input_tokens"], output_tokens=ret["output_tokens"]))
960+
cost=ret["cost"], input_tokens=ret["n_prompt_tokens"], output_tokens=ret["n_completion_tokens"]))
961961
return ret
962962
except Exception as e:
963963
tb = traceback.extract_tb(e.__traceback__)

llms_wrapper/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import importlib.metadata
2-
__version__ = "0.9.1.11"
2+
__version__ = "0.9.1.12"
33

0 commit comments

Comments
 (0)