mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 19:57:04 +08:00
perf: 修改成美元
This commit is contained in:
parent
dbcacdefc3
commit
b2ee62646c
|
@ -55,6 +55,7 @@ response_rules = {
|
|||
# 单个api-key的费用警告阈值
|
||||
# 当使用此api-key进行请求所消耗的费用估算达到此阈值时,会在控制台输出警告并通知管理员
|
||||
# 若之后还有未使用超过此值的api-key,则会切换到新的api-key进行请求
|
||||
# 单位:美元
|
||||
api_key_fee_threshold = 18.0
|
||||
|
||||
# 敏感词过滤开关,以同样数量的*代替敏感词回复
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user