/** * Z.AI Provider Implementation * * Z.AI (GLM models) uses an Anthropic-compatible API format via the GLM Coding Plan. * This provider extends AnthropicProvider with the correct Z.AI endpoint. * * Endpoint: https://api.z.ai/api/anthropic (Anthropic-compatible, uses Coding Plan quota) * Auth: Authorization: Bearer header (same token format as ANTHROPIC_AUTH_TOKEN) */ import { AnthropicProvider } from './anthropic.js'; import type { ProviderConfig } from './types.js'; /** * Z.AI (GLM) API provider adapter. * * Uses Anthropic-compatible API format via Z.AI's Coding Plan endpoint. * Default base URL: https://api.z.ai/api/anthropic */ export declare class ZAIProvider extends AnthropicProvider { readonly name: string; constructor(config: ProviderConfig); /** * Build headers for Z.AI's Anthropic-compatible endpoint. * Z.AI accepts Authorization: Bearer (like ANTHROPIC_AUTH_TOKEN) * instead of x-api-key. */ protected buildHeaders(): Record; /** * Check if the provider is available and configured correctly. * Uses a minimal Anthropic-format message to the Z.AI endpoint. */ healthCheck(): Promise; } //# sourceMappingURL=zai.d.ts.map