Class: LLM::Shell::Default
- Inherits:
-
Object
- Object
- LLM::Shell::Default
- Defined in:
- lib/llm/shell/default.rb
Instance Method Summary collapse
-
#initialize(provider) ⇒ Default
constructor
A new instance of Default.
-
#prompt ⇒ Object
-
#role ⇒ Object
Constructor Details
#initialize(provider) ⇒ Default
Returns a new instance of Default.
5 6 7 |
# File 'lib/llm/shell/default.rb', line 5 def initialize(provider) @provider = provider end |
Instance Method Details
#prompt ⇒ Object
9 10 11 |
# File 'lib/llm/shell/default.rb', line 9 def prompt File.join(SHAREDIR, "prompts", "default.txt") end |
#role ⇒ Object
13 14 15 16 17 18 |
# File 'lib/llm/shell/default.rb', line 13 def role case @provider when "openai", "ollama" then :system else :user end end |