From 95e065a0c4320aeb6c95eb4fac50ed66b621d024 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Thu, 24 Jul 2025 17:33:40 +0200 Subject: [PATCH] Reduce the injected load a bit --- app/models/command/get_insight.rb | 2 +- app/models/command/parser/context.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/command/get_insight.rb b/app/models/command/get_insight.rb index 5505faed7..65c356e41 100644 --- a/app/models/command/get_insight.rb +++ b/app/models/command/get_insight.rb @@ -21,7 +21,7 @@ class Command::GetInsight < Command end private - MAX_COMPLETED_CARDS = 50 + MAX_COMPLETED_CARDS = 40 def chat chat = RubyLLM.chat(model: "chatgpt-4o-latest") diff --git a/app/models/command/parser/context.rb b/app/models/command/parser/context.rb index 81aaa65e1..cb5a7e0a4 100644 --- a/app/models/command/parser/context.rb +++ b/app/models/command/parser/context.rb @@ -1,7 +1,7 @@ class Command::Parser::Context attr_reader :user, :url, :script_name, :source_context - MAX_CARDS = 100 + MAX_CARDS = 75 def initialize(user, url:, script_name: "", source_context: nil) @user = user