Skip to content

Commit

Permalink
Redis: disable response decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
bonk1t authored Dec 24, 2023
1 parent a3d822b commit acf24dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nalgonda/caching/redis_cache_manager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import asyncio
import pickle
from ssl import CERT_NONE

from agency_swarm import Agency
from agency_swarm.util import get_openai_client
Expand All @@ -18,7 +17,7 @@ class RedisCacheManager(CacheManager):
def __init__(self):
"""Initializes the Redis cache manager"""
redis_url = str(settings.redis_tls_url or settings.redis_url)
self.redis = aioredis.from_url(redis_url, decode_responses=True, ssl_cert_reqs="none")
self.redis = aioredis.from_url(redis_url, decode_responses=False, ssl_cert_reqs="none")

def __del__(self):
"""Wait for the Redis connection to close"""
Expand Down

0 comments on commit acf24dc

Please sign in to comment.