Skip to content

No plan shown (parsed as empty) - CC Switch

Quick fix

Upgrade CC Switch to the latest version, or change the filter in your custom script from TOKENS_LIMIT to CREDIT_LIMIT for the new Zhipu credit-based API.

Error output
无任何套餐显示(解析为空)。
English translation

No plan shown (parsed as empty).

Zhipu GLM moved Coding Plan billing to a credit system, and the quota type field the API returns changed from TOKENS_LIMIT to CREDIT_LIMIT. The built-in parser in older CC Switch (parse_zhipu_token_tiers and similar) hard-coded a filter on TOKENS_LIMIT, so every CREDIT_LIMIT entry was discarded and the parse result came back empty.

Earlier versions also had the 5-hour and weekly quotas displayed the wrong way round, the team edition missing specific request headers (bigmodel-organization / bigmodel-project), and requests hard-coded to route to api.z.ai. All were fixed progressively in later versions.

  1. Upgrade CC Switch to a version containing the PR #6160 fix, then use the built-in Token Plan or team edition template, which parses CREDIT_LIMIT data correctly.

  2. To keep using a custom script, change the extractor filter from TOKENS_LIMIT to CREDIT_LIMIT.

    // CC Switch UI 自定义用量查询脚本
    var limits = response.data.limits.filter(function (i) {
    return i.type === "CREDIT_LIMIT"; // TOKENS_LIMIT 改为 CREDIT_LIMIT
    });
Toolcc-switch
Version3.14.1 - 3.19.1
PlatformsWindowsmacOS
Why does my GLM team edition usage query keep failing?
The team edition needs bigmodel-organization and bigmodel-project in the request headers, and ?type=2 on the URL. Upgrade to v3.17.0 or newer, use the built-in "Zhipu GLM Team" template, and fill in the organisation and project IDs.
The 5-hour and 7-day weekly quotas are still swapped after upgrading. What now?
Early versions used a flawed heuristic that sorted by nextResetTime, which inverted the display. Make sure you are on a version with the latest parsing logic, which no longer relies on that unreliable sort.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.