bingbing520 commited on
Commit
93b321e
·
1 Parent(s): de105e0

Update modules/models.py

Browse files
Files changed (1) hide show
  1. modules/models.py +1 -1
modules/models.py CHANGED
@@ -88,7 +88,7 @@ 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"] / 100)
92
  return i18n("**本月使用金额** ") + f"\u3000 ${rounded_usage}"
93
  except requests.exceptions.ConnectTimeout:
94
  status_text = (
 
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"] / 200)
92
  return i18n("**本月使用金额** ") + f"\u3000 ${rounded_usage}"
93
  except requests.exceptions.ConnectTimeout:
94
  status_text = (