Skip to main content

Module data

Module data 

Source
Expand description

Coding Plan usage / quota query client.

Wraps the GLM Coding Plan “余量查询” endpoint GET https://open.bigmodel.cn/api/monitor/usage/quota/limit. The endpoint is authenticated with a normal Bearer API key and reports the per-5-hour and weekly quota consumption / remaining amounts for the subscribed Coding Plan.

See https://docs.bigmodel.cn/cn/coding-plan/extension/usage-query-plugin and the community CLI https://github.com/JinHanAI/coding-plan-monitor.

Structs§

CodingPlanQuotaLimit
One quota window reported by the monitor endpoint.
CodingPlanQuotaSummary
Easy-to-use quota-window view derived from CodingPlanQuotaLimit.
CodingPlanUsageData
data payload returned by the quota-limit endpoint.
CodingPlanUsageDetail
Per-model usage breakdown returned for some quota windows.
CodingPlanUsageRequest
Coding Plan usage / quota query request (GET /api/monitor/usage/quota/limit).
CodingPlanUsageResponse
Standard {code, msg, success, data} envelope used by the monitor API.
CodingPlanUsageSummary
Easy-to-use Coding Plan usage view.

Enums§

CodingPlanQuotaKind
Normalized quota-window kind.