mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(fix) specify UI link on proxy server
This commit is contained in:
parent
cce1c2fcaf
commit
d2de7ba4fe
1 changed files with 5 additions and 0 deletions
|
@ -2959,6 +2959,11 @@ async def google_callback(code: str, request: Request):
|
||||||
user_id = response["user_id"] # type: ignore
|
user_id = response["user_id"] # type: ignore
|
||||||
litellm_dashboard_ui = "https://litellm-dashboard.vercel.app/"
|
litellm_dashboard_ui = "https://litellm-dashboard.vercel.app/"
|
||||||
|
|
||||||
|
# if user set LITELLM_UI_LINK in .env, use that
|
||||||
|
litellm_ui_link_in_env = os.getenv("LITELLM_UI_LINK", None)
|
||||||
|
if litellm_ui_link_in_env is not None:
|
||||||
|
litellm_dashboard_ui = litellm_ui_link_in_env
|
||||||
|
|
||||||
litellm_dashboard_ui += (
|
litellm_dashboard_ui += (
|
||||||
"?userID="
|
"?userID="
|
||||||
+ user_id
|
+ user_id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue