We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c0f7c2 commit 4ad3f1bCopy full SHA for 4ad3f1b
src/agents/extensions/memory/redis_session.py
@@ -25,7 +25,6 @@
25
import json
26
import time
27
from typing import Any
28
-from urllib.parse import urlparse
29
30
try:
31
import redis.asyncio as redis
@@ -96,11 +95,6 @@ def from_url(
96
95
"""
97
redis_kwargs = redis_kwargs or {}
98
99
- # Parse URL to determine if we need SSL
100
- parsed = urlparse(url)
101
- if parsed.scheme == "rediss":
102
- redis_kwargs.setdefault("ssl", True)
103
-
104
redis_client = redis.from_url(url, **redis_kwargs)
105
session = cls(session_id, redis_client=redis_client, **kwargs)
106
session._owns_client = True # We created the client, so we own it
0 commit comments