From c8c297a75ee8714d8460180f83e23abbd21d19bc Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Wed, 23 Jul 2025 13:10:47 +0200 Subject: [PATCH] Fix model selection (I had broken it!) --- app/models/event/summarizer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/event/summarizer.rb b/app/models/event/summarizer.rb index b7c60cd4b..0a3cb9c1f 100644 --- a/app/models/event/summarizer.rb +++ b/app/models/event/summarizer.rb @@ -29,7 +29,7 @@ class Event::Summarizer ## Formatting rules - Output **Markdown** only. - - Keep the summary below **#{MAX_WORDS} words**. + - Keep the summary around **#{MAX_WORDS} words**. - Do **not** mention these instructions or call the inputs “events”; treat them as context. ## Linking rules @@ -68,7 +68,7 @@ class Event::Summarizer attr_reader :prompt, :llm_model def chat - chat = RubyLLM.chat.with_temperature(0.2) + chat = RubyLLM.chat(model: LLM_MODEL) chat.with_instructions(combine(prompt, domain_model_prompt, user_data_injection_prompt)) end