From 3ded13c8d5a7486b687f85813704b21159bfd12f Mon Sep 17 00:00:00 2001 From: Aakash Bakhle <48802744+aakashb95@users.noreply.github.com> Date: Thu, 27 Nov 2025 10:27:11 +0530 Subject: [PATCH] chore(revert): switch label suggestions back gpt 4 mini (#12959) Co-authored-by: aakashb95 Co-authored-by: Muhsin Keloth --- .../lib/enterprise/integrations/openai_processor_service.rb | 2 +- lib/integrations/openai_base_service.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/enterprise/lib/enterprise/integrations/openai_processor_service.rb b/enterprise/lib/enterprise/integrations/openai_processor_service.rb index 594c5d806..5a98ad4c4 100644 --- a/enterprise/lib/enterprise/integrations/openai_processor_service.rb +++ b/enterprise/lib/enterprise/integrations/openai_processor_service.rb @@ -65,7 +65,7 @@ module Enterprise::Integrations::OpenaiProcessorService return value_from_cache if content.blank? { - model: self.class::LABEL_SUGGESTION_MODEL, + model: self.class::GPT_MODEL, messages: [ { role: 'system', diff --git a/lib/integrations/openai_base_service.rb b/lib/integrations/openai_base_service.rb index 116352a8f..c19f605c1 100644 --- a/lib/integrations/openai_base_service.rb +++ b/lib/integrations/openai_base_service.rb @@ -7,7 +7,7 @@ class Integrations::OpenaiBaseService # 120000 * 4 = 480,000 characters (rounding off downwards to 400,000 to be safe) TOKEN_LIMIT = 400_000 GPT_MODEL = ENV.fetch('OPENAI_GPT_MODEL', 'gpt-4o-mini').freeze - LABEL_SUGGESTION_MODEL = 'gpt-5-nano'.freeze + ALLOWED_EVENT_NAMES = %w[rephrase summarize reply_suggestion fix_spelling_grammar shorten expand make_friendly make_formal simplify].freeze CACHEABLE_EVENTS = %w[].freeze