Exception: Durable::Llm::ModelNotFoundError

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

Overview

Error raised when the requested model is not found or not available.

This is similar to ResourceNotFoundError but specifically for models. It occurs when the specified model doesn’t exist or isn’t accessible.

Examples:

Handling model not found errors

begin
  client.complete("Hello", model: "unknown-model")
rescue Durable::Llm::ModelNotFoundError => e
  puts "Model not found: #{e.message}"
end