aixxai 1.7.13 → 1.7.15
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
CHANGED
package/src/commands/balance.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* 数据来源:
|
|
7
7
|
* 1. GET {model}/dashboard/billing/subscription → hard_limit_usd(总额度,美元)
|
|
8
8
|
* 2. GET {model}/dashboard/billing/usage → 已用量(多格式兜底)
|
|
9
|
-
* 3. GET
|
|
9
|
+
* 3. GET aixx.ai/api/v1/account/usage → 数据API免费额度(1121千问终检③接入)
|
|
10
10
|
*
|
|
11
11
|
* 1121终验四修:三路并发(5.7s→~2s)·指引走stdout(PowerShell不再包NativeCommandError)·
|
|
12
12
|
* 耗尽态隐藏"省着用"通用提示·lifetime与daily文案分流。
|
|
@@ -43,12 +43,12 @@ export async function balance(subArgs) {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
console.log(`使用Key: ${maskKey(apiKey)}`);
|
|
46
|
-
console.log(`模型接口: ${baseUrl} · 数据接口:
|
|
46
|
+
console.log(`模型接口: ${baseUrl} · 数据接口: aixx.ai/api/v1\n`);
|
|
47
47
|
|
|
48
48
|
// 1121终验: 三路并发(数据API额度 / 订阅总额度 / 已用量)——串行5.7s→并发~2s
|
|
49
49
|
const pData = (async () => {
|
|
50
50
|
try {
|
|
51
|
-
const u = await fetch('https://
|
|
51
|
+
const u = await fetch('https://aixx.ai/api/v1/account/usage', {
|
|
52
52
|
headers: { Authorization: `Bearer ${apiKey}` },
|
|
53
53
|
signal: AbortSignal.timeout(FETCH_TIMEOUT),
|
|
54
54
|
});
|
|
@@ -109,7 +109,12 @@ export async function balance(subArgs) {
|
|
|
109
109
|
: Math.max(40 - (dataApi.today_counted || 0), 0);
|
|
110
110
|
console.log('── GPU 行情数据 API ──');
|
|
111
111
|
console.log(`📊 档位:${dataApi.tier === 'sub' ? '订阅中' : '免费档'}${dataApi.sub_expires_at ? `(至 ${String(dataApi.sub_expires_at).slice(0, 10)})` : ''}`);
|
|
112
|
-
|
|
112
|
+
if (dataApi.tier === 'sub') {
|
|
113
|
+
// 1123质检P3a: 订阅态隐藏免费额度行(80/80烧干数字对订阅用户=噪音+误导"没额度了")
|
|
114
|
+
console.log('📊 订阅速率:60次/分 · 3000次/日 · 六域全开');
|
|
115
|
+
} else {
|
|
116
|
+
console.log(`📊 免费额度:剩 ${left} / ${dataApi.free_quota} 次(今日已用 ${dataApi.today_counted})`);
|
|
117
|
+
}
|
|
113
118
|
if (left <= 0) {
|
|
114
119
|
// 1121终验新增: lifetime耗尽分支——"明日重置"对lifetime耗尽者=空头承诺(0点后撞403)
|
|
115
120
|
console.log('🚫 免费档总量已用完——日重置不恢复总量,升级订阅档继续使用');
|
package/src/commands/install.js
CHANGED
|
@@ -605,7 +605,7 @@ export async function install(subArgs) {
|
|
|
605
605
|
|
|
606
606
|
/**
|
|
607
607
|
* Agent直连卡(K哥拍板形态+双地址优化): 身份行取裸注册编号(config.AIXX_USER_ID·静默失败无身份则整行不显)。
|
|
608
|
-
* 文档域名用
|
|
608
|
+
* 文档域名用 aixx.ai/data-api.html(1125 K哥令全家搬.ai·www.aixx.vip保留解析兜底老版本CLI)。
|
|
609
609
|
*/
|
|
610
610
|
function printAgentCard(apiKey) {
|
|
611
611
|
let userId = '';
|
|
@@ -618,9 +618,9 @@ function printAgentCard(apiKey) {
|
|
|
618
618
|
console.log(`🔑 API Key: ${apiKey || '(未配置·跑 aixx config 查看)'}`);
|
|
619
619
|
if (userId) console.log(`🪪 萬安云身份: ${userId}(个人中心登录用·密码在本机config)`);
|
|
620
620
|
console.log('🤖 模型API: https://console.aixx.ai/v1');
|
|
621
|
-
console.log('📡 数据API: https://
|
|
622
|
-
console.log('📚 数据文档: https://
|
|
623
|
-
console.log('💡 查行情(免费80次): curl -H "Authorization: Bearer <API Key>" https://
|
|
621
|
+
console.log('📡 数据API: https://aixx.ai/api/v1');
|
|
622
|
+
console.log('📚 数据文档: https://aixx.ai/data-api.html');
|
|
623
|
+
console.log('💡 查行情(免费80次): curl -H "Authorization: Bearer <API Key>" https://aixx.ai/api/v1/market/bulk');
|
|
624
624
|
console.log('💡 调模型(需充值): curl https://console.aixx.ai/v1/chat/completions -H "Authorization: Bearer <API Key>" -d \'{"model":"glm-4-air","messages":[{"role":"user","content":"你好"}]}\'');
|
|
625
625
|
console.log(' (<API Key> 换成上面的key即可;环境变量一行配好: aixx env)');
|
|
626
626
|
console.log('──────────────────────────────────────────\n');
|
package/src/commands/market.js
CHANGED
|
@@ -54,7 +54,7 @@ async function mFetch(path) {
|
|
|
54
54
|
const token = loadToken();
|
|
55
55
|
if (!token) {
|
|
56
56
|
console.error('尚未配置访问令牌。');
|
|
57
|
-
console.error('开通: https://
|
|
57
|
+
console.error('开通: https://aixx.ai/data-api.html#price | 或设置环境变量 AIXX_API_KEY');
|
|
58
58
|
process.exit(1);
|
|
59
59
|
}
|
|
60
60
|
// 1122质检窗P3: 计量操作头行亮明所用key——多key机器上用户/agent知道烧的谁的配额(仅每命令首fetch显一次)
|
|
@@ -102,11 +102,11 @@ async function mFetch(path) {
|
|
|
102
102
|
// 误导用户去重新登录绕死圈。无鉴权探活端点200=网络真通=才可能是token问题。
|
|
103
103
|
let netOk = false;
|
|
104
104
|
try {
|
|
105
|
-
const pv = await fetch('https://
|
|
105
|
+
const pv = await fetch('https://aixx.ai/api/v1/docs.json', { signal: AbortSignal.timeout(8000) });
|
|
106
106
|
netOk = pv.ok;
|
|
107
107
|
} catch {}
|
|
108
108
|
if (!netOk) {
|
|
109
|
-
console.error('网络不可达(无法连接
|
|
109
|
+
console.error('网络不可达(无法连接 aixx.ai)——若在公司内网/代理环境,请配置 HTTPS_PROXY 环境变量后重试;本次失败与令牌无关。');
|
|
110
110
|
} else {
|
|
111
111
|
console.error('令牌无效或已过期,请重新登录: aixx market login --token <T>');
|
|
112
112
|
}
|
package/src/commands/status.js
CHANGED
|
@@ -16,7 +16,7 @@ import { join } from 'path';
|
|
|
16
16
|
|
|
17
17
|
const DEFAULT_BASE_URL = 'https://baodan.run/v1';
|
|
18
18
|
const CLOUD_BASE = 'https://console.aixx.ai';
|
|
19
|
-
const DATA_BASE = 'https://
|
|
19
|
+
const DATA_BASE = 'https://aixx.ai';
|
|
20
20
|
const FETCH_TIMEOUT = 12000;
|
|
21
21
|
|
|
22
22
|
function loadApiKey() {
|
|
@@ -102,7 +102,11 @@ export async function status() {
|
|
|
102
102
|
if (u && u.ok) {
|
|
103
103
|
const left = u.free_quota - u.free_used;
|
|
104
104
|
console.log(`📊 档位:${u.tier === 'sub' ? '订阅中' : '免费档'}${u.sub_expires_at ? `(至 ${String(u.sub_expires_at).slice(0, 10)})` : ''}`);
|
|
105
|
+
if (u.tier === 'sub') {
|
|
106
|
+
console.log('📊 订阅速率:60次/分 · 3000次/日 · 六域全开'); // 1123 P3a: 订阅态隐藏free行
|
|
107
|
+
} else {
|
|
105
108
|
console.log(`📊 免费额度:剩 ${left} / ${u.free_quota} 次(今日已用 ${u.today_counted})`);
|
|
109
|
+
}
|
|
106
110
|
} else {
|
|
107
111
|
console.log('⚠️ ' + ((u && (u.error || u.message)) || '查询失败'));
|
|
108
112
|
}
|
|
@@ -30,7 +30,7 @@ export async function subscribe(subArgs) {
|
|
|
30
30
|
console.log('示例:');
|
|
31
31
|
console.log(' aixx subscribe 1m 一个月档(支付宝扫码/打开)');
|
|
32
32
|
console.log(' aixx subscribe 12m --channel usdt 年档USDT付款');
|
|
33
|
-
console.log('\n订阅=行情数据API
|
|
33
|
+
console.log('\n订阅=行情数据API六域全开(速率60次/分·3000次/日·免费80次额度之外的高流量档)。');
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
|