Exception: Durable::Llm::ServerError

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

Overview

Error raised when the LLM provider’s server encounters an internal error.

This indicates a problem on the provider’s side, not with the user’s request. Users should retry the request after a short delay.

Examples:

Handling server errors

begin
  client.complete("Hello")
rescue Durable::Llm::ServerError => e
  puts "Server error occurred: #{e.message}"
  # Consider retrying after a delay
end