From f7f583fd98f1c0346bb0cdf449f47f49f7a38711 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 22 Aug 2024 18:18:41 +0530 Subject: [PATCH] fix: return value if parse fails --- 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 010bfce4f..908ebf27e 100644 --- a/lib/integrations/openai_base_service.rb +++ b/lib/integrations/openai_base_service.rb @@ -50,7 +50,7 @@ class Integrations::OpenaiBaseService JSON.parse(value, symbolize_names: true) rescue JSON::ParserError - nil + value end def save_to_cache(response)