perf: 修改成美元

This commit is contained in:
Rock Chin 2022-12-28 00:14:41 +08:00
parent dbcacdefc3
commit b2ee62646c
2 changed files with 2 additions and 1 deletions

View File

@ -55,6 +55,7 @@ response_rules = {
# 单个api-key的费用警告阈值
# 当使用此api-key进行请求所消耗的费用估算达到此阈值时会在控制台输出警告并通知管理员
# 若之后还有未使用超过此值的api-key则会切换到新的api-key进行请求
# 单位:美元
api_key_fee_threshold = 18.0
# 敏感词过滤开关,以同样数量的*代替敏感词回复

View File

@ -117,7 +117,7 @@ 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,
reply_str += "{}:\n - {}{}%\n".format(api_key,
round(pkg.openai.manager.get_inst().key_mgr.get_fee(
api_keys[api_key]), 6),
round(