Module: OllamaChat

Defined in:
lib/ollama_chat.rb,
lib/ollama_chat/asr.rb,
lib/ollama_chat/context_usage.rb,
lib/ollama_chat/invidious.rb,
lib/ollama_chat/version.rb

Overview

Version information for the OllamaChat gem.

This module is auto-generated by GemHadar and exposes the current release version as a set of constants. Do not edit it by hand; it is rewritten on every rake version invocation.

Defined Under Namespace

Modules: Clipboard, CollectionSearch, CommandConcern, Commands, Compaction, ConfigHandling, Conversation, Database, Dialog, DocumentCache, FavouritesManagement, Feedback, FileEditing, HTTPHandling, History, Information, InputContent, KramdownANSI, LocationHandling, Logging, MessageEditing, MessageFormat, MessageMixin, MessageOutput, ModelHandling, Pager, Parsing, PersonaeManagement, PromptHandling, PromptManagement, RAGHandling, ServerSocket, SessionManagement, SourceFetching, Speaker, StateSelectors, Switches, SystemPromptManagement, ThinkControl, TokenEstimator, ToolCalling, Tools, UUIDV7, Utils, WebSearching Classes: ASR, Chat, CompactionError, ConfigMissingError, ContextUsage, ExecuteError, FollowChat, HTTPError, InvalidPathError, Invidious, LinksSet, Message, MessageList, OllamaChatConfig, OllamaChatError, OllamaChatQuitError, RedisCache, Say, TTS, ToolCallProcessor, ToolFunctionArgumentError, UnknownModelError, Vim

Constant Summary collapse

COLLECTION_NAME_REGEXP =

Regular expression defining the allowed characters for collection names.

Matches alphanumeric characters, underscores, hyphens, and dots. Explicitly excludes slashes and other shell metacharacters to prevent path traversal and parsing issues.

Returns:

  • (Regexp) —

    the pattern for validating collection identifiers

/[-\w\.]+/
VERSION =

The current version of the OllamaChat gem as a String.

'0.0.139'
VERSION_ARRAY =

:nodoc:

VERSION.split('.').map(&:to_i)
VERSION_MAJOR =

:nodoc:

VERSION_ARRAY[0]
VERSION_MINOR =

:nodoc:

VERSION_ARRAY[1]
VERSION_BUILD =

:nodoc:

VERSION_ARRAY[2]

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.test_mode=(value) ⇒ Object (writeonly)

Sets the attribute test_mode

Parameters:

  • value —

    the value to set the attribute test_mode to.



88
89
90
# File 'lib/ollama_chat.rb', line 88

def test_mode=(value)
  @test_mode = value
end

Class Method Details

.test_mode? ⇒ Boolean

Checks whether test mode is enabled.

When true, AppState.seed skips the interactive confirm? prompt and auto-accepts new prompt fingerprints.

Returns:

  • (Boolean) —

    true if test mode is enabled



96
97
98
# File 'lib/ollama_chat.rb', line 96

def test_mode?
  !!@test_mode
end