fix(proxy): scope the ui-session spread disables to the marker binding (basedpyright ceiling)

Generated-by: termag
This commit is contained in:
Jack Danger 2026-10-18 10:33:30 +00:00
parent d07c2bb46b
commit 9888723066
2 changed files with 2 additions and 2 deletions

View file

@ -339,7 +339,7 @@ async def _sign_in(
response = await generate_key_helper_fn(
llm_router=None,
request_type="key",
**{
**{ # pyright: ignore[reportUnknownArgumentType] # the onboarding spread binds our allow_ui_session_marker flag explicitly
"user_role": LitellmUserRoles.PROXY_ADMIN,
"duration": LITELLM_UI_SESSION_DURATION,
"key_max_budget": litellm.max_ui_session_budget,

View file

@ -18704,7 +18704,7 @@ async def _generate_onboarding_ui_session_token(user_obj: _UserTableRow) -> str:
response: Final = await generate_key_helper_fn(
llm_router=llm_router,
request_type="key",
**{
**{ # pyright: ignore[reportUnknownArgumentType] # the onboarding spread binds our allow_ui_session_marker flag explicitly
"user_role": user_obj.user_role,
"duration": LITELLM_UI_SESSION_DURATION,
"key_max_budget": litellm.max_ui_session_budget,