module

Crig::Providers::ZAI

Constants

ANTHROPIC_API_BASE_URL = "https://api.z.ai/api/anthropic"
CODING_API_BASE_URL = "https://api.z.ai/api/coding/paas/v4"
GENERAL_API_BASE_URL = "https://api.z.ai/api/paas/v4"

Z.AI API provider — OpenAI-compatible chat API with general and coding entrypoints.

GLM_4_5 = "glm-4.5"
GLM_4_5_AIR = "glm-4.5-air"
GLM_4_5_AIRX = "glm-4.5-airx"
GLM_4_5V = "glm-4.5v"
GLM_4_6 = "glm-4.6"
GLM_4_6_AIR = "glm-4.6-air"
GLM_4_6_X = "glm-4.6-x"

Class methods

anthropic_beta
Source
anthropic_betas
Source
anthropic_version
Source
normalize_anthropic_base_url(base_url : String) : String
Source
resolve_anthropic_base_override(primary : String | Nil, fallback : String | Nil) : String | Nil
Source

Nested types