Ver Fonte

feat: EditTokenModal 中针对用户创建的 token 默认无限额度

zhaolion há 1 mês atrás
pai
commit
c86bc94d9d

+ 2 - 2
web/src/components/table/tokens/modals/EditTokenModal.jsx

@@ -66,9 +66,9 @@ const EditTokenModal = (props) => {
 
   const getInitValues = () => ({
     name: '',
-    remain_quota: 500000,
+    remain_quota: 0,
     expired_time: -1,
-    unlimited_quota: false,
+    unlimited_quota: true,
     model_limits_enabled: false,
     model_limits: [],
     allow_ips: '',