Class: PromptNavigator::Configuration
- Inherits:
-
Object
- Object
- PromptNavigator::Configuration
- 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
-
#model_labels ⇒ Object
Returns the value of attribute model_labels.
-
#platform_labels ⇒ Object
Returns the value of attribute platform_labels.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_labels ⇒ Object
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_labels ⇒ Object
Returns the value of attribute platform_labels.
20 21 22 |
# File 'lib/prompt_navigator/configuration.rb', line 20 def platform_labels @platform_labels end |