Module: OC::OLLAMA::CHAT

Defined in:
lib/ollama_chat/oc.rb

Defined Under Namespace

Modules: TOOLS

Constant Summary collapse

DEBUG =
set do
  description 'Enable debugging for chat client'
  decode { _1.to_i == 1 }
  default 0
end
MODEL =
set do
  description 'Default model to use for the chat'
  default 'llama3.1'
end
SYSTEM =
set do
  description 'Default system prompt'
end
COLLECTION =
set do
  description 'Default collection for embeddings'
end
HISTORY =
set do
  description 'File to save the chat history in'
  default     XDG_STATE_HOME + 'history.json'
end
LOGFILE =
set do
  description 'File to output log messages to'
  default     XDG_STATE_HOME + 'chat.log'
end
USER =
set do
  description '(Full) Name of the chat user'
  default     { ENV['USER'] }
end