Exception: RubyLLM::UnauthorizedError

Inherits:
Error
  • Object
show all
Defined in:
lib/ruby_llm/error.rb

Overview

Raised for HTTP 401 responses when the API key is missing or invalid.

Instance Attribute Summary

Attributes inherited from Error

#response

Class Method Summary collapse

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from RubyLLM::Error

Class Method Details

.default_messageObject

:nodoc:



180
181
182
# File 'lib/ruby_llm/error.rb', line 180

def self.default_message # :nodoc:
  'Invalid API key - check your credentials'
end