zai

package
v0.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package zai implements the z.ai usage provider.

Auth: Property Inspector settings field or Z_AI_API_KEY / ZAI_API_TOKEN / ZAI_API_KEY environment variable. Endpoint: {host}/api/monitor/usage/quota/limit where host is selected by the region picker (Global / BigModel CN) unless overridden via settings or Z_AI_API_HOST / Z_AI_QUOTA_URL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{}

Provider fetches z.ai usage data.

func (Provider) BrandBg added in v0.3.0

func (Provider) BrandBg() string

BrandBg returns the background color used on button faces.

func (Provider) BrandColor

func (Provider) BrandColor() string

BrandColor returns the accent color used on button faces.

func (Provider) Fetch

Fetch returns the latest z.ai quota snapshot.

func (Provider) ID

func (Provider) ID() string

ID returns the provider identifier used by the registry.

func (Provider) MetricIDs

func (Provider) MetricIDs() []string

MetricIDs enumerates the metrics this provider can emit.

func (Provider) Name

func (Provider) Name() string

Name returns the human-readable provider name.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL