Class: LlmConductor::Clients::OpenrouterClient
- Inherits:
-
BaseClient
- Object
- BaseClient
- LlmConductor::Clients::OpenrouterClient
- Includes:
- Concerns::VisionSupport
- Defined in:
- lib/llm_conductor/clients/openrouter_client.rb
Overview
OpenRouter client implementation for accessing various LLM providers through OpenRouter API Supports both text-only and multimodal (vision) requests
Transient failures (502s from overloaded free-tier models, rate limits, timeouts) 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
Method Summary
Methods inherited from BaseClient
#generate, #generate_simple, #initialize
Methods included from Concerns::Retryable
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