chore(revert): switch label suggestions back gpt 4 mini (#12959)

Co-authored-by: aakashb95 <aakash@chatwoot.com>
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Aakash Bakhle
2025-11-27 10:27:11 +05:30
committed by GitHub
parent f1079574e3
commit 3ded13c8d5
2 changed files with 2 additions and 2 deletions

View File

@@ -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',

View File

@@ -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