perf: 更加精细的费用记录

This commit is contained in:
Rock Chin
2022-12-28 00:11:25 +08:00
parent 0b7d9a4a46
commit dbcacdefc3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -118,8 +118,8 @@ def process_message(launcher_type: str, launcher_id: int, text_message: str) ->
using_key_name = ""
for api_key in api_keys:
reply_str += "{}:\n - {}{}%\n".format(api_key,
pkg.openai.manager.get_inst().key_mgr.get_fee(
api_keys[api_key]),
round(pkg.openai.manager.get_inst().key_mgr.get_fee(
api_keys[api_key]), 6),
round(
pkg.openai.manager.get_inst().key_mgr.get_fee(
api_keys[