Method: LlmMemory::Broca#initialize
- Defined in:
- lib/llm_memory/broca.rb
#initialize(prompt:, model: "gpt-3.5-turbo", temperature: 0.7, max_token: 4096) ⇒ Broca
Returns a new instance of Broca.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/llm_memory/broca.rb', line 9 def initialize( prompt:, model: "gpt-3.5-turbo", temperature: 0.7, max_token: 4096 ) LlmMemory.configure @prompt = prompt @model = model @messages = [] @temperature = temperature @max_token = max_token end |