Merge pull request #3212 from BerriAI/ui_increase_default_session_time

UI - increase default session time to 2 hours
This commit is contained in:
Ishaan Jaff 2024-04-22 13:46:18 -07:00 committed by GitHub
commit 877c4e27f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7875,7 +7875,7 @@ async def login(request: Request):
) )
if os.getenv("DATABASE_URL") is not None: if os.getenv("DATABASE_URL") is not None:
response = await generate_key_helper_fn( response = await generate_key_helper_fn(
**{"user_role": "proxy_admin", "duration": "1hr", "key_max_budget": 5, "models": [], "aliases": {}, "config": {}, "spend": 0, "user_id": key_user_id, "team_id": "litellm-dashboard"} # type: ignore **{"user_role": "proxy_admin", "duration": "2hr", "key_max_budget": 5, "models": [], "aliases": {}, "config": {}, "spend": 0, "user_id": key_user_id, "team_id": "litellm-dashboard"} # type: ignore
) )
else: else:
raise ProxyException( raise ProxyException(
@ -8127,7 +8127,7 @@ async def auth_callback(request: Request):
# User might not be already created on first generation of key # User might not be already created on first generation of key
# But if it is, we want their models preferences # But if it is, we want their models preferences
default_ui_key_values = { default_ui_key_values = {
"duration": "1hr", "duration": "2hr",
"key_max_budget": 0.01, "key_max_budget": 0.01,
"aliases": {}, "aliases": {},
"config": {}, "config": {},