From b894a852d202a055c5a95fecbea7b39fe74e5baa Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 22 Aug 2024 17:56:34 +0530 Subject: [PATCH] chore: update comment --- lib/integrations/openai_base_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/integrations/openai_base_service.rb b/lib/integrations/openai_base_service.rb index f38f4b5a6..c7c28871d 100644 --- a/lib/integrations/openai_base_service.rb +++ b/lib/integrations/openai_base_service.rb @@ -54,7 +54,7 @@ class Integrations::OpenaiBaseService return nil unless event_is_cacheable? # if the response is a hash, save it as a json - # This allows the fetching to be simplified + # This allows the parsing to be simplified when getting from cache response = response.to_json if response.is_a?(Hash) Redis::Alfred.setex(cache_key, response) end