aixxai 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/install.js +4 -2
package/package.json
CHANGED
package/src/commands/install.js
CHANGED
|
@@ -119,8 +119,10 @@ async function autoRegister(baseUrl, refCode) {
|
|
|
119
119
|
},
|
|
120
120
|
body: JSON.stringify({
|
|
121
121
|
name: 'default',
|
|
122
|
-
remain_quota:
|
|
123
|
-
unlimited_quota: true
|
|
122
|
+
remain_quota: 0, // 0表示用账户的额度(不设token独立额度)
|
|
123
|
+
unlimited_quota: false // 关键:不能设true!设true会导致balance接口显示"无限额度"
|
|
124
|
+
// (New-API对unlimited token返回hard_limit_usd=1亿),
|
|
125
|
+
// 用户看不到真实的$5余额。设false后,用user.quota(注册送的500000=$5)
|
|
124
126
|
}),
|
|
125
127
|
signal: AbortSignal.timeout(FETCH_TIMEOUT),
|
|
126
128
|
});
|