From 86b1095f29f11ec84a016012a890bd9dd9b2df18 Mon Sep 17 00:00:00 2001 From: ren Date: Mon, 16 Feb 2026 19:44:01 -0300 Subject: [PATCH] Fix GLM API field: type instead of quota_type --- dist/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 258fef2..d590881 100644 --- a/dist/index.js +++ b/dist/index.js @@ -84,8 +84,8 @@ async function getGlmUsage() { let totalMinutes = 0; for (const l of limits) { - if (l.quota_type === 'TOKENS_LIMIT') tokenPct = l.percentage || 0; - if (l.quota_type === 'TIME_LIMIT') { + if (l.type === 'TOKENS_LIMIT') tokenPct = l.percentage || 0; + if (l.type === 'TIME_LIMIT') { timeRemaining = (l.remaining || 0) / 1000 / 60; totalMinutes = (l.total || 0) / 1000 / 60; }