Class: Vercon::Config
- Inherits:
-
Object
- Object
- Vercon::Config
- Defined in:
- lib/vercon/config.rb
Constant Summary collapse
- CLAUDE_MODELS =
%w[ claude-3-haiku-20240307 claude-3-sonnet-20240229 claude-3-opus-20240229 ].freeze
- DEFAULT_CLAUDE_MODEL =
"claude-3-sonnet-20240229"
- LOWEST_CLAUDE_MODEL =
"claude-3-haiku-20240307"
- PATH =
"~/.vercon.yml"
Instance Method Summary collapse
- #claude_model ⇒ Object
- #claude_token ⇒ Object
- #exists? ⇒ Boolean
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #open_by_default? ⇒ Boolean
Constructor Details
Instance Method Details
#claude_model ⇒ Object
32 33 34 |
# File 'lib/vercon/config.rb', line 32 def claude_model @config["claude_model"] end |
#claude_token ⇒ Object
28 29 30 |
# File 'lib/vercon/config.rb', line 28 def claude_token @config["claude_token"] end |
#exists? ⇒ Boolean
24 25 26 |
# File 'lib/vercon/config.rb', line 24 def exists? !@config.empty? end |
#open_by_default? ⇒ Boolean
36 37 38 |
# File 'lib/vercon/config.rb', line 36 def open_by_default? @config["open_by_default"].nil? ? false : @config["open_by_default"] end |