diff --git a/lib/integrations/openai_processor_service.rb b/lib/integrations/openai_processor_service.rb index d80f66849..a9ad59c7b 100644 --- a/lib/integrations/openai_processor_service.rb +++ b/lib/integrations/openai_processor_service.rb @@ -18,7 +18,7 @@ class Integrations::OpenaiProcessorService return value_from_cache if CACHEABLE_EVENTS.include?(event_name) && value_from_cache.present? response = send("#{event_name}_message") - save_to_cache(response) if CACHEABLE_EVENTS.include?(event_name) + save_to_cache(response) if CACHEABLE_EVENTS.include?(event_name) && response.present? response end