Exception: RubyLLM::ContextLengthExceededError

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

Overview

Raised when the request exceeds the model's context window or token limits.

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:



121
122
123
# File 'lib/ruby_llm/error.rb', line 121

def self.default_message # :nodoc:
  'Context length exceeded'
end