class ActiveGenie::Configuration::Providers::InternalCompanyApiConfig

Manages API keys, URLs, model selections, and client instantiation.
Configuration class for the Internal Company API client.

def api_key

Returns:
  • (String, nil) - The API key.
def api_key
  @api_key || ENV['INTERNAL_COMPANY_API_KEY']
end

def api_url

Returns:
  • (String) - The API base URL.
def api_url
  @api_url || 'https://api.internal-company.com/v1'
end

def client

Returns:
  • (ActiveGenie::Clients::InternalCompanyApiClient) - The client instance.
def client
  @client ||= ::ActiveGenie::Clients::InternalCompanyApiClient.new(self)
end

def lower_tier_model

Returns:
  • (String) - The lower tier model name.
def lower_tier_model
  @lower_tier_model || 'internal-basic'
end

def middle_tier_model

Returns:
  • (String) - The middle tier model name.
def middle_tier_model
  @middle_tier_model || 'internal-standard'
end

def upper_tier_model

Returns:
  • (String) - The upper tier model name.
def upper_tier_model
  @upper_tier_model || 'internal-premium'
end