Class: PromptNavigator::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/prompt_navigator/configuration.rb

Overview

Host-overridable display config for the history sidebar.

Usage from a host app initializer:

PromptNavigator.configure do |c|
  c.platform_labels["openai"] = "OAI"           # override platform default
  c.model_labels["claude-opus-4-7"] = "Opus"    # per-model override
end

Constant Summary collapse

DEFAULT_PLATFORM_LABELS =
{
  "openai"    => "GPT",
  "anthropic" => "Claude",
  "google"    => "Gemini",
  "ollama"    => "Ollama"
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



22
23
24
25
# File 'lib/prompt_navigator/configuration.rb', line 22

def initialize
  @platform_labels = DEFAULT_PLATFORM_LABELS.dup
  @model_labels    = {}
end

Instance Attribute Details

#model_labelsObject

Returns the value of attribute model_labels.



20
21
22
# File 'lib/prompt_navigator/configuration.rb', line 20

def model_labels
  @model_labels
end

#platform_labelsObject

Returns the value of attribute platform_labels.



20
21
22
# File 'lib/prompt_navigator/configuration.rb', line 20

def platform_labels
  @platform_labels
end