Module: Ruboty::OpenAIChat

Defined in:
lib/ruboty/openai_chat.rb,
lib/ruboty/openai_chat/memory.rb,
lib/ruboty/openai_chat/message.rb,
lib/ruboty/openai_chat/version.rb,
lib/ruboty/openai_chat/actions/base.rb,
lib/ruboty/openai_chat/actions/chat.rb,
lib/ruboty/openai_chat/actions/show_profile.rb,
lib/ruboty/openai_chat/actions/remember_profile.rb

Defined Under Namespace

Modules: Actions Classes: Error, Memory, Message

Constant Summary collapse

VERSION =
"0.4.0"

Class Method Summary collapse

Class Method Details

.debug_mode?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/ruboty/openai_chat.rb', line 22

def self.debug_mode?
  ENV["OPENAI_CHAT_DEBUG"]&.length&.positive?
end