Spaces:
Building
Building
Update session.py
Browse files- session.py +5 -7
session.py
CHANGED
@@ -18,12 +18,11 @@ class Session:
|
|
18 |
|
19 |
MAX_CHAT_HISTORY: int = field(default=20, init=False, repr=False)
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
self.locale = locale
|
27 |
|
28 |
# State management - string for better debugging
|
29 |
state: str = "idle" # idle | collect_params | call_api | humanize
|
@@ -181,7 +180,6 @@ def generate_secure_session_id() -> str:
|
|
181 |
|
182 |
return f"session_{session_id[:32]}"
|
183 |
|
184 |
-
|
185 |
class SessionStore:
|
186 |
"""In-memory session store (to be replaced with Redis)"""
|
187 |
|
|
|
18 |
|
19 |
MAX_CHAT_HISTORY: int = field(default=20, init=False, repr=False)
|
20 |
|
21 |
+
session_id: str
|
22 |
+
project_name: str
|
23 |
+
version_no: int
|
24 |
+
is_realtime: Optional[bool] = False
|
25 |
+
locale: Optional[str] = "tr"
|
|
|
26 |
|
27 |
# State management - string for better debugging
|
28 |
state: str = "idle" # idle | collect_params | call_api | humanize
|
|
|
180 |
|
181 |
return f"session_{session_id[:32]}"
|
182 |
|
|
|
183 |
class SessionStore:
|
184 |
"""In-memory session store (to be replaced with Redis)"""
|
185 |
|