Exception: Durable::Llm::AuthenticationError

Inherits:
Error
  • Object
show all
Defined in:
lib/durable/llm/errors.rb

Overview

Error raised when authentication with the LLM provider fails.

This typically occurs when API keys are invalid, expired, or not provided. Users should check their API key configuration when encountering this error.

Examples:

Handling authentication errors

begin
  client.complete("Hello")
rescue Durable::Llm::AuthenticationError => e
  puts "Authentication failed. Please check your API key: #{e.message}"
end