Skip to main content

AuthProfile

Defined in the failover module.
Authentication profile for an LLM provider. Attributes: name: Profile name for identification provider: Provider name (openai, anthropic, google, etc.) api_key: API key for authentication base_url: Optional base URL override model: Default model for this profile priority: Priority for failover (lower = higher priority) rate_limit_rpm: Requests per minute limit rate_limit_tpm: Tokens per minute limit status: Current status last_error: Last error message last_error_time: Timestamp of last error cooldown_until: Timestamp until which this profile is in cooldown metadata: Additional provider-specific configuration

Properties

name
str
No description available.
provider
str
No description available.
api_key
str
No description available.
base_url
Optional
No description available.
model
Optional
No description available.
priority
int
No description available.
rate_limit_rpm
Optional
No description available.
rate_limit_tpm
Optional
No description available.
status
ProviderStatus
No description available.
last_error
Optional
No description available.
last_error_time
Optional
No description available.
cooldown_until
Optional
No description available.
metadata
Dict
No description available.

Methods

  • from_dict: Create from dictionary.
  • to_dict: Convert to dictionary (hides sensitive data).