Spaces:
Sleeping
Sleeping
Commit
·
460567c
1
Parent(s):
93b321e
Update modules/models.py
Browse files- modules/models.py +2 -2
modules/models.py
CHANGED
@@ -88,8 +88,8 @@ class OpenAIClient(BaseLLMModel):
|
|
88 |
except Exception as e:
|
89 |
logging.error(f"获取API使用情况失败:" + str(e))
|
90 |
return i18n("**获取API使用情况失败**")
|
91 |
-
rounded_usage = "{:.5f}".format(usage_data["total_usage"] /
|
92 |
-
return i18n("
|
93 |
except requests.exceptions.ConnectTimeout:
|
94 |
status_text = (
|
95 |
STANDARD_ERROR_MSG + CONNECTION_TIMEOUT_MSG + ERROR_RETRIEVE_MSG
|
|
|
88 |
except Exception as e:
|
89 |
logging.error(f"获取API使用情况失败:" + str(e))
|
90 |
return i18n("**获取API使用情况失败**")
|
91 |
+
rounded_usage = "{:.5f}".format(usage_data["total_usage"] / 100)
|
92 |
+
return i18n("**本月使用金额(每个账号只有 5 美刀金额)** ") + f"\u3000 ${rounded_usage}"
|
93 |
except requests.exceptions.ConnectTimeout:
|
94 |
status_text = (
|
95 |
STANDARD_ERROR_MSG + CONNECTION_TIMEOUT_MSG + ERROR_RETRIEVE_MSG
|