chainlit 1.1.303__py3-none-any.whl → 1.1.304__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.
Potentially problematic release.
This version of chainlit might be problematic. Click here for more details.
- chainlit/server.py +8 -4
- {chainlit-1.1.303.dist-info → chainlit-1.1.304.dist-info}/METADATA +1 -1
- {chainlit-1.1.303.dist-info → chainlit-1.1.304.dist-info}/RECORD +5 -5
- {chainlit-1.1.303.dist-info → chainlit-1.1.304.dist-info}/WHEEL +0 -0
- {chainlit-1.1.303.dist-info → chainlit-1.1.304.dist-info}/entry_points.txt +0 -0
chainlit/server.py
CHANGED
|
@@ -317,8 +317,6 @@ def get_user_facing_url(url: URL):
|
|
|
317
317
|
Return the user facing URL for a given URL.
|
|
318
318
|
Handles deployment with proxies (like cloud run).
|
|
319
319
|
"""
|
|
320
|
-
|
|
321
|
-
ROOT_PATH = os.environ.get("CHAINLIT_ROOT_PATH", "")
|
|
322
320
|
chainlit_url = os.environ.get("CHAINLIT_URL")
|
|
323
321
|
|
|
324
322
|
# No config, we keep the URL as is
|
|
@@ -524,9 +522,12 @@ async def oauth_callback(
|
|
|
524
522
|
"token_type": "bearer",
|
|
525
523
|
}
|
|
526
524
|
)
|
|
525
|
+
|
|
526
|
+
root_path = os.environ.get("CHAINLIT_ROOT_PATH", "")
|
|
527
|
+
|
|
527
528
|
response = RedirectResponse(
|
|
528
529
|
# FIXME: redirect to the right frontend base url to improve the dev environment
|
|
529
|
-
url=f"/login/callback?{params}",
|
|
530
|
+
url=f"{root_path}/login/callback?{params}",
|
|
530
531
|
)
|
|
531
532
|
response.delete_cookie("oauth_state")
|
|
532
533
|
return response
|
|
@@ -601,9 +602,12 @@ async def oauth_azure_hf_callback(
|
|
|
601
602
|
"token_type": "bearer",
|
|
602
603
|
}
|
|
603
604
|
)
|
|
605
|
+
|
|
606
|
+
root_path = os.environ.get("CHAINLIT_ROOT_PATH", "")
|
|
607
|
+
|
|
604
608
|
response = RedirectResponse(
|
|
605
609
|
# FIXME: redirect to the right frontend base url to improve the dev environment
|
|
606
|
-
url=f"/login/callback?{params}",
|
|
610
|
+
url=f"{root_path}/login/callback?{params}",
|
|
607
611
|
status_code=302,
|
|
608
612
|
)
|
|
609
613
|
response.delete_cookie("oauth_state")
|
|
@@ -56,7 +56,7 @@ chainlit/oauth_providers.py,sha256=Mv31biQ84EBJfQGBxqhFfnbpl-jfQ_Zn6IxKY3XZg6Q,2
|
|
|
56
56
|
chainlit/openai/__init__.py,sha256=DJP_ptclLUM5Zylr4RO1Vk0lCufo3yDqXyH5J9izYS8,1814
|
|
57
57
|
chainlit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
58
58
|
chainlit/secret.py,sha256=cQvIFGTQ7r2heC8EOGdgifSZZYqslh-qQxhUhKhD8vU,295
|
|
59
|
-
chainlit/server.py,sha256=
|
|
59
|
+
chainlit/server.py,sha256=kZ_L3v1C-jM85HJZyZZYPkiPtfYpP9iQRn5sdMOlMGo,28322
|
|
60
60
|
chainlit/session.py,sha256=SOX2zFct3apiSNcIzCDWgDRsUFgUG_6hewqWU8gfIZE,9694
|
|
61
61
|
chainlit/slack/__init__.py,sha256=Q41ztJHeVmpoXVgVqAcwGOufQp_bjf7dDT7eEXDdhPI,207
|
|
62
62
|
chainlit/slack/app.py,sha256=FgrlaupsCo-_1m8FiFcS5s-wFg_28bCjfKnawvlVbEM,11646
|
|
@@ -73,7 +73,7 @@ chainlit/user.py,sha256=8PgRJvv59b7BKTNguObo68gyFoOGNJfVkT3WW-fvhAM,671
|
|
|
73
73
|
chainlit/user_session.py,sha256=G1amgs1_h2tVn4mtAXZmunm9nlBHQ_rCYvJQh3nsVwQ,1645
|
|
74
74
|
chainlit/utils.py,sha256=w3UIzvaQ72y5VrycFoWaqS_NocS40No7mzPWqkelzCE,3939
|
|
75
75
|
chainlit/version.py,sha256=iosXhlXclBwBqlADFKEilxAC2wWKbtuBKi87AmPi7s8,196
|
|
76
|
-
chainlit-1.1.
|
|
77
|
-
chainlit-1.1.
|
|
78
|
-
chainlit-1.1.
|
|
79
|
-
chainlit-1.1.
|
|
76
|
+
chainlit-1.1.304.dist-info/METADATA,sha256=E2kJ1O5OcOTkOIGnI9KhWaVKkUO0Y-97Wy6qwED-vzw,6291
|
|
77
|
+
chainlit-1.1.304.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
78
|
+
chainlit-1.1.304.dist-info/entry_points.txt,sha256=FrkqdjrFl8juSnvBndniyX7XuKojmUwO4ghRh-CFMQc,45
|
|
79
|
+
chainlit-1.1.304.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|