Class: LlmConductor::Clients::ZaiClient

Inherits:
BaseClient
  • Object
show all
Includes:
Concerns::VisionSupport
Defined in:
lib/llm_conductor/clients/zai_client.rb

Overview

Z.ai client implementation for accessing GLM models including GLM-4.5V Supports both text-only and multimodal (vision) requests

Note: Z.ai uses OpenAI-compatible API format but with /v4/ path instead of /v1/ We use Faraday directly instead of the ruby-openai gem to properly handle the API path

Transient failures are retried by BaseClient's Concerns::Retryable using configuration.max_retries / configuration.retry_delay.

Constant Summary

Constants included from Concerns::Retryable

Concerns::Retryable::JITTER_RATIO, Concerns::Retryable::MAX_BACKOFF_SECONDS, Concerns::Retryable::MAX_RETRY_AFTER_SECONDS, Concerns::Retryable::RETRYABLE_STATUSES, Concerns::Retryable::TRANSPORT_ERRORS

Instance Attribute Summary

Attributes inherited from BaseClient

#model, #params, #type

Method Summary

Methods inherited from BaseClient

#generate, #generate_simple, #initialize

Methods included from Concerns::Retryable

sleep_for

Methods included from Prompts

#prompt_analyze_content, #prompt_classify_content, #prompt_custom, #prompt_extract_links, #prompt_summarize_text

Constructor Details

This class inherits a constructor from LlmConductor::Clients::BaseClient