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