beamlit 0.0.57rc114__py3-none-any.whl → 0.0.57rc116__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- beamlit/agents/thread.py +5 -11
- {beamlit-0.0.57rc114.dist-info → beamlit-0.0.57rc116.dist-info}/METADATA +1 -1
- {beamlit-0.0.57rc114.dist-info → beamlit-0.0.57rc116.dist-info}/RECORD +6 -6
- {beamlit-0.0.57rc114.dist-info → beamlit-0.0.57rc116.dist-info}/WHEEL +0 -0
- {beamlit-0.0.57rc114.dist-info → beamlit-0.0.57rc116.dist-info}/entry_points.txt +0 -0
- {beamlit-0.0.57rc114.dist-info → beamlit-0.0.57rc116.dist-info}/licenses/LICENSE +0 -0
beamlit/agents/thread.py
CHANGED
@@ -18,14 +18,8 @@ def get_default_thread(request: Request) -> str:
|
|
18
18
|
Returns:
|
19
19
|
str: The extracted thread identifier. Returns an empty string if no valid identifier is found.
|
20
20
|
"""
|
21
|
-
if request.headers.get("X-Beamlit-
|
22
|
-
return request.headers.get("X-Beamlit-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
token = authorization.split(" ")[1]
|
27
|
-
decoded = jwt.decode(token, options={"verify_signature": False})
|
28
|
-
return decoded["sub"]
|
29
|
-
except Exception:
|
30
|
-
return ""
|
31
|
-
return ""
|
21
|
+
if request.headers.get("X-Beamlit-Thread-Id"):
|
22
|
+
return request.headers.get("X-Beamlit-Thread-Id")
|
23
|
+
if request.headers.get("Thread-Id"):
|
24
|
+
return request.headers.get("Thread-Id")
|
25
|
+
return ""
|
@@ -8,7 +8,7 @@ beamlit/agents/__init__.py,sha256=bWsFaXUbAps3IsL3Prti89m1s714vICXodbQi77h3vY,20
|
|
8
8
|
beamlit/agents/chain.py,sha256=JsinjAYBr3oaM4heouZaiaV2jMmi779LHAMtD_4P59s,4867
|
9
9
|
beamlit/agents/chat.py,sha256=ufuydptucLNe_Jyr7lQO1WfQ5pe0I5YKh-y0smwWABM,8301
|
10
10
|
beamlit/agents/decorator.py,sha256=yRxzrLOMhXW0S4ThRD7cm6UqUarw6gdB_ZP2jnZanvM,8311
|
11
|
-
beamlit/agents/thread.py,sha256=
|
11
|
+
beamlit/agents/thread.py,sha256=QecahZCH8_U91cvCw2X6cYn9N1liVXVl3u3lFxVDdNg,798
|
12
12
|
beamlit/agents/voice/openai.py,sha256=-RDBwl16i4TbUhFo5-77Ci3zmI3Y8U2yf2MmvXR2haQ,9479
|
13
13
|
beamlit/agents/voice/utils.py,sha256=tQidyM40Ewuy12wKqpvJLvfJgneQ0sZf50dqnerPGHg,836
|
14
14
|
beamlit/api/__init__.py,sha256=zTSiG_ujSjAqWPyc435YXaX9XTlpMjiJWBbV-f-YtdA,45
|
@@ -254,8 +254,8 @@ beamlit/serve/app.py,sha256=5XZci-R95Zjl97wMtQd1BRtonnkJJ2AeoTVFPKGAOfA,4283
|
|
254
254
|
beamlit/serve/middlewares/__init__.py,sha256=O7fyfE1DIYmajFY9WWdzxCgeAQWZzJfeUjzHGbpWaAk,309
|
255
255
|
beamlit/serve/middlewares/accesslog.py,sha256=lcu33j4epFSHRBaeTpyt8deNb3kaM3K91-andw4fp80,1112
|
256
256
|
beamlit/serve/middlewares/processtime.py,sha256=3x5w1yQexB0xFNKK6fgLbINxT-eLLunfZ6UDV0bIIF4,944
|
257
|
-
beamlit-0.0.
|
258
|
-
beamlit-0.0.
|
259
|
-
beamlit-0.0.
|
260
|
-
beamlit-0.0.
|
261
|
-
beamlit-0.0.
|
257
|
+
beamlit-0.0.57rc116.dist-info/METADATA,sha256=KpJNZqlT0B2RNtn3sT5FzRT3cVsorqq1ZdHU64UP1so,3547
|
258
|
+
beamlit-0.0.57rc116.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
259
|
+
beamlit-0.0.57rc116.dist-info/entry_points.txt,sha256=zxhgdn7SP-Otk4rEv7LMPAAa9w4TUCLbu9TJi9-K3xg,115
|
260
|
+
beamlit-0.0.57rc116.dist-info/licenses/LICENSE,sha256=p5PNQvpvyDT_0aYBDgmV1fFI_vAD2aSV0wWG7VTgRis,1069
|
261
|
+
beamlit-0.0.57rc116.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|